@Poremsky.com

Tips & Tricks for Windows, Office, and Whatever

  • Home
  • Windows
  • Office
  • Web Design
  • WordPress
  • Internet Explorer

How to Remove Office Licenses from Windows

Published on February 2, 2026

A user wanted to upgrade his Office software and mistakenly purchased Office Home, which doesn't include Outlook. Microsoft refunded the purchase and he purchased Office Home and Business. The problem? The Office apps all said “Office Home” and Outlook was from his older version of Office.

To fix this, we needed to remove the Office Home license from his computer. With older versions of Office, you'd run a VBS script to view the last 5 characters in the license code, then run it again to remove that license.  That method no longer works, and was replaced by a PowerShell script. It works  the same: open PowerShell, find the license ID then run it again to remove the license.

  1.  Start typing PowerShell on the start menu.
  2. When it comes up, choose Run as Administrator
    Run PowerShell as administrator
  3. If this is your first time using PowerShell, run one of the following commands to allow *.ps1 files to run. Click the y key to accept the change.To set the permissions for all PowerShell scripts in the future:
    Set-ExecutionPolicy RemoteSigned
    remote sign all
    If you only want to give permission to the current session, use the following. When you close PowerShell, the permissions are removed.
    Set-ExecutionPolicy RemoteSigned -Scope Process
    remote sign for process only
  4. Next, you need to switch the directory to the office directory. Type or paste this line in PowerShell and click Run.
    cd "C:\Program Files\Microsoft Office\Office16\"
    change the working directory
  5. Next, type or paste this line in PowerShell:
    ./vnextdiag.ps1 -action list
    locate and copy the license key to be removed
    The list action returns information about each Office license installed, including the following:
    "Version": "5",
    "Type": "User|Subscription",
    "Product": "O365HomePremRetail",
    "LicenseId": "CWW_[long GUID] "
  6. Copy the LicenseId code, including the quotes.
    license id
    The license ID will begin with CWW if you have a consumer license or EWW if you have a business subscription.
  7. Then type or paste this line in PowerShell, pasting the licenseId GUID at the end.
    ./vnextdiag.ps1 -action remove -LicenseId [the GUID from the last line]
    It will look like this:
    ./vnextdiag.ps1 -action remove -LicenseId "CWW_cd64618d-more-characters- c355df42706e5acf8"remove the license key
  8. A message will come up after it removes the license:
    Removed license with Id CWW_cd64618d-more-characters- c355df42706e5acf8

If you have other licenses to remove, repeat the -action remove line. When you’re finished, close PowerShell.

If you have both a consumer and a business subscription, both should be listed when you get the license list. While you can remove the consumer license, it will be added back if you are signed in using your Microsoft account.

Share this:

  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on X (Opens in new window) X
  • Click to print (Opens in new window) Print
Subscribe
Notify of
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments

Recent Posts

  • How to Remove Office Licenses from Windows
  • Use a JavaScript bookmarklet to open an archive for a webpage
  • How to fix records that are all in one column
  • Change Password or Pin Complexity after removing from Intune
  • Server drafts location is not valid error message

Recent Comments

  • FUAD on Remove Office Licenses from Windows
  • Brian DuBridge on Add the Recent Items Folder to Windows 10 Quick Access
  • Renee Moodie on Remove Office Licenses from Windows
  • John P on Remove Office Licenses from Windows
  • Puja on Remove Office Licenses from Windows
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.

To find out more, including how to control cookies, see here: Cookie Policy

© 2026 · @Poremsky.com

wpDiscuz
Go to mobile version