WellingtonIS
asked on
Uninstall Office 2007 - remotely
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?
ASKER
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?
You can get the product id from setup.xml file.
Ded9
Ded9
ASKER
I can't find the product ID setup.xml for office do you know where it is?
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\Pr oPlus.WW\s etup.xml
Ded9
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\Pr
Ded9
ASKER
Nothing in there how about the registry product ID?
Wait that file was for 2010 ..
Ded9
Ded9
ASKER
ok that looked kind of strange when I opened it.
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
http://technet.microsoft.com/en-us/library/cc179070%28v=office.12%29.aspx
check for your version of office.
Ded9
ASKER
90120000-0011-0000-0000-00 00000FF1CE Got it thanks. I'll see if I can make it work. I'll let you know thanks!
ASKER
I discovered WMIC and I'm trying to use PSExec to run - you got me on the correct path.. Thax.
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.
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.
ASKER
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.
ASKER
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
@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
Good one :)
Ded9
Ded9
ASKER
small error no @before the %var% unless you are using it on multiple computers and no @ before the Var2 either. Sorry.
ASKER
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
@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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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
@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
http://blogs.technet.com/b/odsupport/archive/2011/04/06/how-to-perform-an-uninstall-upgrade-to-office-2010.aspx
Ded9