Uninstalling Old Office and Lync in one swoop
Currently, we are in the process of migrating all users to Office 365 ProPlus. However, manually uninstalling lync and office can be a pain. An easier way to do this is to:
Create a folder and make two separate xml files named lync.xml and proplus.xml. Put this folder in a publicly accessible share somewhere.
In the lync.xml put in the following:
In the proplus.xml put in
<Configuration Product="LYNCENTRY">
<Display Level="None" AcceptEULA="TRUE" />
<Setting Id="SETUP_REBOOT" Value="NEVER" />
</Configuration>
Next, create a batch file named nuke.bat or whatever fancy thing you want to name it. Paste in the following:
<Configuration Product="ProPlus">
<Display Level="none" CompletionNotice="no" SuppressModal="yes" AcceptEula="yes" />
<Setting Id="SETUP_REBOOT" Value="NEVER" />
</Configuration>
@echo off
msg * /time:0 /w THIS WILL REMOVE ALL VERSIONS OF LYNC, AND OFFICE 2010! If you didnt want to run this exit the cmd window and then click ok. Else...happy nuking!
echo off
taskkill.exe /F /IM iexplore.exe /T
taskkill.exe /F /IM outlook.exe /T
taskkill.exe /F /IM lync.exe /T
taskkill.exe /F /IM word.exe /T
taskkill.exe /F /IM excel.exe /T
robocopy /mir \\UNC PATH TO YOUR SHARE WITH XML FILES\ C:\Apps\
"C:\Program Files\Common Files\Microsoft Shared\OFFICE15\Office Setup Controller\setup.exe" /UNINSTALL /dll OSETUP.DLL LyncEntry /config C:\Apps\lync.xml
"C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE15\Office Setup Controller\setup.exe" /UNINSTALL LyncEntry /dll OSETUP.DLL /config C:\Apps\lync.xml
"C:\Program Files\Common Files\Microsoft Shared\OFFICE16\Office Setup Controller\setup.exe" /UNINSTALL LyncEntry /config C:\Apps\lync.xml
"C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE16\Office Setup Controller\setup.exe" /UNINSTALL LyncEntry /config C:\Apps\lync.xml
"C:\Program Files\Common Files\Microsoft Shared\OFFICE14\Office Setup Controller\setup.exe" /UNINSTALL proplus /config C:\Apps\proplus.xml /dll OSETUP.DLL
"C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE14\Office Setup Controller\setup.exe" /UNINSTALL proplus /config C:\Apps\proplus.xml /dll OSETUP.DLL
msg * /time:0 /w All done.
Now you can launch the nuke.bat as administrator and sit back while it does it's own thing. No reboot is needed if you immediately want to just install the 365 ProPlus next.
Comments
Post a Comment