In volume licensed editions of Office (ones with an MSI deployment), you can use OCT to create a package that will remove previous versions of Office when the new version is deployed.
Office 365 Pro Plus is Click-to-Run only, which means that OCT will not work with it. ODT allows for some customization of Office 365 Pro Plus, but appears to lack the ability to remove previous versions of Office.
Is there a way to do this native to the Office 365 Pro Plus deployment, or does this really involve creating a script to check for every possible version of Office along with uninstall logic?
Have you tried using wmic? You could use wildcard operators, and tune them to catch whatever programs you'd like to remove.
For instance, try
You should catch most of what you're looking to remove. You could tune it further to search specifically for the versions or components of Office you know the machines have installed, but it would be likely fine (after checking a couple cases) to have the 'Office' wildcard blast through; definitely doublecheck though!
So just script up something like this:
After you know you have your where clause tuned to catch just what you want. To avoid any issues, you can make it as specific of a query as you want.
MDMarra,
When we were deploying O365 both the partners and MS said "you don't have to uninstall previous versions, they can stay on the computers". To which I said "why leave them on there?" and they didn't have a great answer for me other than "you can uninstall them if you'd like".
So...that said...
The below wasn't around when I was deploying...it would've likely been overkill for my needs and we had multiple users that still needed Office 2010 around in conjunction with Office Pro Plus 2013 for a while...but I had bookmarked this last month for another potential client.
That said, here's what I had found.
In conjunction with the PowerShell App Deployment Kit found here:
http://psappdeploytoolkit.com/
Christian Fosund has a script on his site he's using for a very large deployment:
http://fosund.com/?p=494
It's not a "download and run it" script. You'll need the PADT and you'll need to change the script code for your particular environment needs, but it appeared to be worthy of a bookmark, and maybe it will help you as well.