I am having a lot of problems getting my Lync 2013 uninstall automated through SCCM 2012. We currently have the KMS version installed with Office 2010. I am working on implementing Office 2k13 that includes Lync 2013 but we need to remove Lync 2913 before installing Office 2013 because of known issues in our environment.. I thought I could setup a package within SCCM 2012 (applications are not an option at this time with superseedence) and just keep running into where the uninstall never completes.
In short I am trying to use C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE15\Office Setup Controller\setup.exe" /uninstall LYNC /dll OSETUP.DLL in a batch file to remove Lync 2013.
If I run this as an Admin it uninstalls Lync 2013 just fine on the PC. But if I try and run this as a .bat with a SCCM package it never completes. It ends up timing out.
I am using 2 scripts inside of the package. One to move the 2nd script into a location that SCCM will run from. I found if I were just to leave the LyncRemoval.bat file in the windows\ccmcache folder the bat would never run, even if manually clicking on the .bat file, it needed to be local on the PC...at least from the way I created the script.
MD "C:\apps\Lync2013 Uninstall"
xcopy /s /e /i "\\cosccm2012pss\package_source\Microsoft\Lync\Lync 2013\Uninstall\LyncRemoval.bat" "c:\apps\Lync2013 Uninstall"
"C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE15\Office Setup Controller\setup.exe" /uninstall LYNC /dll OSETUP.DLL
In short the package runs, makes directory, copied files and then eventually times out. I set it up to Run Hidden and with Admin Rights inside of the SCCM 2012 Deployment. If I run the LyncRemoval.bat from c:\apps\Lync2013 Uninstall it always says I need admin creds. If I run as admin creds on the PC itself it works fine. So what am I doing wrong that the admin creds are not passing from SCCM to the push?