tech_guy Posted September 1, 2011 Posted September 1, 2011 My VBS skills seem to have waned or perhaps I was just carp to begin with. I used to have a script that would uninstall a set application on a given date from teacher laptops. We used it to remove a variety of applications so not as to be caught out when a licencing period came to an end or was not renewed. It was handy if the laptop was an infrequent visitor to the school and it was amazingly effective at prompting the recalcitrant staff member to bring it back in for some TLC. I can't find the script despite searching and it looks like it's been lost - it has been some years since we needed it. Does anyone have or can knock up for me a vbs script that we can run as a scheduled task to silently uninstall or automatically remove the likes of Microsoft Office 2007? I've bashed together one but Office gets its knickers in a twist on our test PC when we run it and I don't whether it's me being lame or a combination of the fact it's me being useless and it's Microsoft Office 2007 and Windows 7 we're dealing with. Box of beer of your choice to whoever can nail this one. Many thanks.
RabbieBurns Posted September 1, 2011 Posted September 1, 2011 (edited) does it need to be vbs? using a batch file for example you can call the msiexec with the uninstall flag and string i cant remember the exact syntax but there is a silent flag as well so its done in the background %WINDIR%\System32\MsiExec.exe /X{90120000-0011-0000-0000-0000000FF1CE} REBOOT="ReallySupress"/qn according to this most applications that use msiexec have an uninstall string you can use in this way Edited September 1, 2011 by RabbieBurns 1
Arthur Posted September 1, 2011 Posted September 1, 2011 If you want to quickly find the GUID for Microsoft Office (for msiexec.exe), use this PowerShell command... Get-WmiObject -Class Win32_Product -Filter "Name LIKE '%Microsoft Office%'" WMIC is another alternative if you don't want to bother with GUIDs... wmic product where name="Microsoft Office Professional Plus 2010" call uninstall /nointeractive 1
tech_guy Posted September 1, 2011 Author Posted September 1, 2011 Just come along this little gem at Technet: How to obtain and use Offscrub to automate the uninstallation of Office products - Office Deployment Support Team Blog - Site Home - TechNet Blogs
mac_shinobi Posted September 1, 2011 Posted September 1, 2011 They have an ms kb with an MSI to remove office that will not remove so can't you make a script to run that at log off or logon or something ? http://support.microsoft.com/kb/290301 Might be able to use Orca or something like that to disect the msi to see what it does or how it does it and am sure it uses bat script or something
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now