Re: Removing multiple versions of Office

Home Forums Scripting General Scripting Removing multiple versions of Office Re: Removing multiple versions of Office


h0me
Member
#377626

I found this, which looks like what I need, however, it appears that this would be 3 to 4 separate batch files we’d have to run rather than just 1 to include all version removals.

For Office 2007:

[USER=”68995″]Echo[/USER] OFF
cls
TITLE Uninstalling Office. . .

wmic product where “name like ‘Microsoft Office 2007′” call uninstall /nointeractive
wmic product where “name like ‘Microsoft Office Professional Hybrid 2007′” call uninstall /nointeractive
goto END

:END
pause
exit

Office 2010:

[USER=”68995″]Echo[/USER] OFF
cls
TITLE Uninstalling Office. . .

wmic product where “name like ‘Microsoft Office 2010 Professional'” call uninstall /nointeractive
wmic product where “name like ‘Microsoft Single Image 2010′” call uninstall /nointeractive
goto END

:END
pause
exit

For Office 2003: This one is unsure as we dont have it.

[USER=”68995″]Echo[/USER] OFF
cls
TITLE Uninstalling Office. . .

wmic product where “name like ‘Microsoft Office 2003 Professional'” call uninstall /nointeractive
wmic product where “name like ‘Microsoft Single Image 2003′” call uninstall /nointeractive

wmic product where “name like ‘Microsoft Office 2003′” call uninstall /nointeractive

goto END

:END
pause
exit