Jump to content

VBS Scipt to silently uninstall MS Office required please!


Recommended Posts

Posted

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.

Posted (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 by RabbieBurns
  • Thanks 1
Posted

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

  • Thanks 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...