OfficeDev / Office-IT-Pro-Deployment-Scripts

A collection of useful PowerShell scripts to make deploying Office 2016 and Office 365 ProPlus easier for IT Pros and administrators. If you have any feature requests or ideas for future scripts please add the idea to the issues list in this repository
http://officedev.github.io/Office-IT-Pro-Deployment-Scripts
MIT License
882 stars 838 forks source link

Option : -ProductsToRemove MainOfficeProduct does not work #349

Open egiberne opened 4 years ago

egiberne commented 4 years ago

Hello, I want to use the tool to remove Office 2010 Pro plus. But I am facing a trouble with the command : Remove-PreviousOfficeInstalls.ps1 -ProductsToRemove MainOfficeProduct It does not work. I thinks there is the mistake due to the cmdlet GetProductName. It returns no result. Can you help me to fix it, please ? Regards

egiberne commented 4 years ago

Hello, I fix it. How can I share it or commit it for evalution ? Regards

HeyJudeRW commented 4 years ago

That one bugs me as well (pun intended). I would like to make a SCCM package to remove all main Office installs, without Visio. How did you fix the script? I debugged it and found out that GetClientCulture doesn’t return correct results...

cafahag commented 4 years ago

HI all I am getting the following error PreviousOfficeInstalls.ps1:1425 char:123

please could you advise