andrew-s-taylor / public

Public Scripts and Apps
GNU General Public License v3.0
488 stars 189 forks source link

O365 removal does not work due #46

Closed dmaassen closed 1 month ago

dmaassen commented 1 month ago

Hello,

I am trying to remove an OEM version of O365 with your debloat script. However, it does not work.

I think it is due to the following.

This line of code is run on the wrong file.

Start-Process -FilePath "C:\ProgramData\Debloat\odt.exe" -ArgumentList "/configure C:\ProgramData\Debloat\o365.xml" -Wait

The file odt.exe provided by your repo and downloaded by the script is the ODT tool itself; not a valid usage.

When this line of the de-bloat script is run, odt.exe generates an "incorrect usage" dialog.

My hunch is that what you actually wanted to do is run the above line on setup.exe, which is found after running odt /extract. But the wrong file was provided.

cheers and thanks for your work.

andrew-s-taylor commented 1 month ago

Thank you, sometimes it's the obvious things I miss!

All updated now to download and use setup.exe instead :)

dmaassen commented 1 month ago

Thanks for the speedy update!

Works well, cheers.