

#loop till the end of the array searching for the $o365 stringįor ($i=0 $i -lt $license. If you have a Click-to-Run or an MSI installation, uninstall Microsoft 365 using the Control Panel or download the uninstall support tool. The reseller has suggested that we should have 'new licences' ready in order to assign them once the reseller disconnects. For that its best to call their support line. The reseller has advised us that as soon as they cancel/stop their reseller relationship against our Office365 tenant, we shall lose all of our assigned licences. $o365 = “OfficeO365ProPlusR_Subscription1 edition” The only way to reduce licenses is to have Microsoft do it for you. $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. To check what account is registered from within Word, click File -> Account and ensure the "Belongs to:" account matches their UF email address.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. Repeat the previous step for all installed license until it says there are no licenses installed. Type: cscript ospp.vbs /unpkey:XXXXX (where XXXXX is equal to the last 5 characters of that showed up during the dstatus command) Type: cscript ospp.vbs /dstatus and press enter

Trying to find a way to remove expired license of O365 for 2 days, even Microsoft didnt provide a comprehensive way to remove it. Type: cd "\Program Files (x86)\Microsoft Office\Office16" and press enter 5 steps for removing and re-adding an Office 2013 or Office 365 license key without having to uninstall/reinstall. Start > type CMD > right click command prompt and choose run as administrator Step 2: Delete all activation's for Office via command prompt Navigate to HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\Identity\ĭelete the Identities key and all subkeys. Open Regedit > right-click run as administrator Step 1: Remove the Identities registry keyĮnsure all Office applications are closed If a student comes from a previous school or college with an office 365 subscription installed on their laptop you must use these instructions to remove the old license from the computer. Solution home General FAQ's Remove previous Office 365 subscription install
