+ Post New Thread
Results 1 to 5 of 5
General Chat Thread, VBS Scipt to silently uninstall MS Office required please! in General; My VBS skills seem to have waned or perhaps I was just carp to begin with. I used to have ...
  1. #1

    tech_guy's Avatar
    Join Date
    May 2007
    Location
    That little bit in the middle of Little Old England
    Posts
    8,131
    Thank Post
    1,907
    Thanked 1,342 Times in 741 Posts
    Blog Entries
    3
    Rep Power
    395

    VBS Scipt to silently uninstall MS Office required please!

    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.

  2. #2

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,512
    Thank Post
    1,320
    Thanked 469 Times in 306 Posts
    Blog Entries
    6
    Rep Power
    199
    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

    Code:
    %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
    Last edited by RabbieBurns; 1st September 2011 at 10:30 AM.

  3. Thanks to RabbieBurns from:

    tech_guy (1st September 2011)

  4. #3


    Join Date
    Feb 2007
    Location
    51.405546, -0.510212
    Posts
    8,709
    Thank Post
    220
    Thanked 2,615 Times in 1,926 Posts
    Rep Power
    777
    If you want to quickly find the GUID for Microsoft Office (for msiexec.exe), use this PowerShell command...

    Code:
    Get-WmiObject -Class Win32_Product -Filter "Name LIKE '%Microsoft Office%'"
    WMIC is another alternative if you don't want to bother with GUIDs...

    Code:
    wmic product where name="Microsoft Office Professional Plus 2010" call uninstall /nointeractive

  5. Thanks to Arthur from:

    tech_guy (1st September 2011)

  6. #4

    tech_guy's Avatar
    Join Date
    May 2007
    Location
    That little bit in the middle of Little Old England
    Posts
    8,131
    Thank Post
    1,907
    Thanked 1,342 Times in 741 Posts
    Blog Entries
    3
    Rep Power
    395

  7. #5

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,680
    Thank Post
    3,210
    Thanked 1,030 Times in 955 Posts
    Rep Power
    361
    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

    M
    ight 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

SHARE:
+ Post New Thread

Similar Threads

  1. Alternatives to MS Office
    By rfonti in forum Office Software
    Replies: 12
    Last Post: 24th August 2011, 10:44 PM
  2. Batch convert Open Office to MS Office?
    By adhutton in forum Office Software
    Replies: 5
    Last Post: 25th March 2009, 12:14 PM
  3. MS OFFICE GPO
    By alan-d in forum Windows
    Replies: 16
    Last Post: 30th March 2006, 05:02 PM
  4. MS Office XP - filename length
    By broc in forum Windows
    Replies: 0
    Last Post: 30th March 2006, 12:08 PM
  5. Learning Essentials for MS Office
    By beeswax in forum Educational Software
    Replies: 0
    Last Post: 7th February 2006, 08:53 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •