
Before uninstalling 365, 2019, or 2016 check in the MyAccount site to confirm that you can re-install from there. #loop till the end of the array searching for the $o365 stringįor ($i=0 $i -lt $license. Method 2: Completely uninstall Office with the uninstall support tool (SetupProdOffScrub.exe Which installs S.A.R.A.) Method 3: Remove manually (Registry Hack). $o365 = “OfficeO365ProPlusR_Subscription1 edition” $license = cscript ‘C:\Program Files (x86)\Microsoft Office\Office16\OSPP.VBS’ /dstatus Here is the code: #store the license info into an array

But I cannot get the pipe to catch the output of the key and run it to uninstall it.


I am trying to edit a PowerShell working here to retrieve the installed product key for an Office 365 installation so I can then take that output and uninstall the key with ospp.vbs.
