When starting an Office 365 Pro Plus (Office 2016, Office 2019) product like Word, Excel, PowerPoint or Outlook you may be prompted to log in. At that point you may see:
- Uninstall Office with the Microsoft Office Uninstall Support Tool After discontinuing or making some other Office uninstall tools unavailable, Microsoft has come out with another utility to handle the task. The Office uninstall support tool says it can completely uninstall Office 2007, 2010, 2013, 2016, 2019 and various versions of Office 365.
- Re-configuring my environment to use Share License Mode for Office 365. Was using ospp.vbs to remove the licenses but that only comes with Office 2016 and not Office 365. I did at one point try to make it work but it has lots of dependency paths which wasn't worth the effort.
Remove Old License Office 365
Sorry, another account from your organization is already signed in on this computer
There are two ways to solve this but each one starts with closing ALL Office products including Skype and Teams. For some reason, you also need to close Internet Explorer although we don’t know why that is.
CLOSE EVERYTHING:
If you are unsure if everything is closed use TASK MANAGER or the TASK KILL script provided at the end of this article.
Installing Microsoft Office 365 Click-To-Run Using The Office Deployment Tool The section immediately below will outline how to include Office 365 Pro Plus as part of a corporate image. The section following that will outline how to deploy additional Office 365 Click-To-Run applications (think Visio and Project) as deployment packages in Landesk. If you have a Click-to-Run or an MSI installation, uninstall Office using the Control Panel or download the uninstall support tool. Option 1 - Uninstall Office from the Control Panel Open the Control Panel. Tip: If you installed the Office apps as part of a suite, such as Office Home and Student or Microsoft 365, search for the suite name.
1- Manually Delete your Stored Credentials, Office Identity and Office 365 License:
A – Clear your Credentials
- Click the START button and type CREDENTIAL MANAGER then click on it
- Click the WINDOWS CREDENTIALS TAB
- Expand every item one by one and select REMOVE
Yes this is a tedious process and there is no way to remove all of the stored credentials at the same time in Windows 10.
B – Clear your Office Identity From the Registry
- Click the START button and type REGEDIT then click on it
- Delete both of the following entries:
HKCUSoftwareMicrosoftOffice16.0CommonIdentity
HKCUSoftwareMicrosoftOffice16.0Registration
C – Delete your License Data
- Delete the following folder and all of its contents
%localappdata%MicrosoftOffice16.0Licensing
D – Reboot
- Reboot (not just a log off) your PC
- After you sign in launch Word (or Excel or…) and sign in when prompted
E – ADVANCED OPTION
If this still does not work, you may have to add two registry entries. This means you need to run through steps A, B and C above again, add the reg entries below, then reboot
- Click the START button and type CMD, the click on it
- Enter these two commands to add in ADAL WAM OVERRIDE:
REG ADD HKCUSoftwareMicrosoftOffice16.0CommonIdentity /v EnableADAL /t REG_DWORD /d 00000000 /f
REG ADD HKCUSoftwareMicrosoftOffice16.0CommonIdentity /v DisableADALatopWAMOverride /t REG_DWORD /d 00000001 /f
F- ADVANCED OPTION 2
If this still does not work, you will have to run THIS .VBS SCRIPT then steps A, B, C and E before rebooting. You can open the script and understand what it is doing as Visual Basic script is close to plain english.
2 – Script The Stripping of All Stored Credentials, Office Identity and Licensing
A – Close All Office Products and Internet Explorer
taskkill /IM WinWord.exe /F
taskkill /IM Excel.exe /F
taskkill /IM Outlook.exe /F
taskkill /IM PowerPoint.exe /F
taskkill /IM Lync.exe /F
taskkill /IM MSACCESS.EXE /F
taskkill /IM Teams.exe /F
taskkill /IM MSPub.exe /F
taskkill /IM OneNote.exe /F
taskkill /IM OneNoteM.exe /F
taskkill /IM iexplore.exe /F
taskkill /IM OfficeClickToRun.exe /F
taskkill /IM OneDrive.exe /F
B – Clear All Office Licenses
Run THIS .VBS SCRIPT and this command:
Office 365 Trial Removal Tool
del /F /Q %localappdata%MicrosoftOffice16.0Licensing
C – Clear the Users Office Identity
This script must be run as the user with the issue:
REG DELETE HKCUSoftwareMicrosoftOffice16.0CommonIdentity /f
REG DELETE HKCUSoftwareMicrosoftOffice16.0Registration /f
REG ADD HKCUSoftwareMicrosoftOffice16.0CommonIdentity /v EnableADAL /t REG_DWORD /d 00000000 /f
REG ADD HKCUSoftwareMicrosoftOffice16.0CommonIdentity /v DisableADALatopWAMOverride /t REG_DWORD /d 00000001 /f
D – Reboot
Office 365 License Removal Tool
Reboot and try an Office product like Word or Excel
Microsoft Office 365 License Removal Tool
Scripting Notes:
Office 365 Mac License Removal Tool
When I was scripting this I found there was timing issues and that I had to put so lags in and even run the scripts multiple times. My PDQ deployment looks like: