SCCM – In Place Upgrade – Office 365 Pre-Cleanup Script

Here is my script to detect things that interfere with Office 365 installs when doing an in-place-upgrade of Windows 10 that has Office and may have other things installed that could grenade an Office 365 deployment.

It basically searches add-remove programs in the registry and if it finds something we know breaks our later Office 365 install, we remove it from the machine.

It has built-in code to log to CMTrace compatible log files — note that this is an earlier version of the code and there is a known bug that will just throw errors when the log tries to roll over but are essentially warnings. I have an updated script coming soon.

Posted in Office 365, SCCM, Windows 10.