Solved

Uninstall Office 2007 - remotely

Posted on 2013-01-23
19
1,510 Views
Last Modified: 2013-02-04
I have about 1200 machines and I need to uninstall office 2007 from them. Is there a command line or psexec command i can use to uninstall office so I don't have to go around to each machine and do this?
0
Comment
Question by:WellingtonIS
19 Comments
 
LVL 30

Expert Comment

by:ded9
ID: 38810274
0
 

Author Comment

by:WellingtonIS
ID: 38810293
OK but as for the Product ID will that be the same for all the Office Products installed?  Meaning can I look for the Product ID on one machine and use it for all of them?
0
 
LVL 30

Expert Comment

by:ded9
ID: 38810323
You can get the product id from setup.xml file.



Ded9
0
 

Author Comment

by:WellingtonIS
ID: 38810325
I can't find the product ID setup.xml for office do you know where it is?
0
 
LVL 30

Expert Comment

by:ded9
ID: 38810362
If you are not able to locate the setup.xml ...copy it from this location

C:\Program Files\Common Files\Microsoft Shared\OFFICE14\Office Setup Controller\Groove.en-us\

The Setup.xml file is located in the core product folder on the network installation point. In Setup.xml, [ProductID] is equal to the value of the Id attribute of the Setup element. For example:

Might be hidden.

e.g
\\server\share\Office14\ProPlus.WW\setup.xml




Ded9
0
 

Author Comment

by:WellingtonIS
ID: 38810383
Nothing in there how about the registry product ID?
0
 
LVL 30

Expert Comment

by:ded9
ID: 38810409
Wait that file was for 2010 ..


Ded9
0
 

Author Comment

by:WellingtonIS
ID: 38810431
ok that looked kind of strange when I opened it.
0
 
LVL 30

Expert Comment

by:ded9
ID: 38810488
You can get it from here

http://technet.microsoft.com/en-us/library/cc179070%28v=office.12%29.aspx

check for your version of office.


Ded9
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

Author Comment

by:WellingtonIS
ID: 38810499
90120000-0011-0000-0000-0000000FF1CE  Got it thanks.  I'll see if I can make it work.  I'll let you know thanks!
0
 

Author Comment

by:WellingtonIS
ID: 38811171
I discovered WMIC and I'm trying to use PSExec to run  - you got me on the correct path.. Thax.
0
 
LVL 2

Expert Comment

by:CSD-Tech
ID: 38814580
Just a quick question on this as well,

Are you installing a new version of Office on these machines? If so, you may not need to uninstall because the new version will uninstall it for you.
0
 

Author Comment

by:WellingtonIS
ID: 38814726
Some of them we are however, the reason why I have to remove it is we have something called a DSM from CA which installs software, inventory's the machines and allows for remote access (when it works)  We have a new package for office 2010 but we installed Office 2007 by disk.  The DSM will not remove the Office Version (the one we installed by hand) to update/upgrade to 2010.  So I have to remove it.
0
 

Author Comment

by:WellingtonIS
ID: 38815202
Here's how I got it to work.

@echo off
set /p var= Enter the computer txt name:
set /p var2= Enter the Product Name:



psexec \\@%var% -s -i cmd /c wmic product where vendor="@%var2%" call uninstall
0
 
LVL 30

Expert Comment

by:ded9
ID: 38815229
Good one :)


Ded9
0
 

Author Comment

by:WellingtonIS
ID: 38815238
small error no @before the %var% unless you are using it on multiple computers and no @ before the Var2 either.  Sorry.
0
 

Author Comment

by:WellingtonIS
ID: 38815262
OK this is the correct one.  Sorry.

@echo off
set /p var= Enter the computer txt name:
set /p var2= Enter the Product Name:



psexec \\%var% -s -i cmd /c wmic product where name="%var2%" call uninstall
0
 
LVL 10

Accepted Solution

by:
Tony Barkdull earned 500 total points
ID: 38849201
Look into the registry on one of the target computers in this key

HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall

scroll down and find the Office 2007 key

The uninstall string will be listed on the right side window

Just create a uninstall.bat file, copy that to each computer, like c:\temp

run it with psexec,

psexec \\remotecomputer c:\temp\uninstall.bat
0
 

Author Closing Comment

by:WellingtonIS
ID: 38850937
this worked thanks. but so did this
@echo off
set /p var= Enter the computer txt name:
set /p var2= Enter the Product Name:



psexec \\%var% -s -i cmd /c wmic product where name="%var2%" call uninstall
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Windows 7 won't join domain 4 42
Syntax error 9 45
Samsung Smart View subtitles don't work 1 71
How to apply the PAC URL and PAC file to a Windows 7 PC 2 24
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now