Share via


Uninstalling Office 2010 via the command line

Question

Thursday, June 29, 2017 7:30 AM

Hello,

I'm trying to uninstall Office 2010 via command line using the following command with the eventual aim of putting this into a batch script which will check to see if a machine has office 2010 installed and if it does then remove it and install office 2016: 

wmic product where "name like 'Microsoft Office Professional Plus 2010'" call uninstall /nointeractive

When i run this i receive @method execution successful, however it doesn't uninstall the programme. 

I was just wondering what is the most likely reason for this? The program uninstalls correctly from going to add remove programs and uninstalling from there.

All replies (1)

Thursday, June 29, 2017 7:46 AM

Hi,

Office 2010 requires more to uninstall than just that command, have a look at this, should work fine to run that using SCCM.

http://www.itninja.com/question/uninstall-office-2010-professional-plus

Regards,
Jörgen

-- My System Center blog ccmexec.com -- Twitter @ccmexec