Uninstalling Power-user by script

Modified on Thu, 20 Nov at 3:42 PM

Below are the instructions for IT admins who need to uninstall Power-user on users' computers by script. 

The script will deactivate the license, uninstall Power-user and clean the registry.


The below scripts are for CMD, but you can alternatively use PowerShell. Contact us if you need a PowerShell script instead. 


If Power-user is installed in C:\Users\%USERNAME%\AppData\Local\Power-user\

  • Launch a command line (e.g. CMD) in the user context
  • Paste this block of code and run it to deactivate the user license, after replacing "XXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXX" with your license key:
REM /!\ This script needs to run in the USER context /!\

IF EXIST "C:\Users\%USERNAME%\AppData\Local\Power-user\" (
    echo Uninstalling Power-user software
    wmic product where name="Power-user" call uninstall
)
  • Paste this block of code and run it to uninstall:
REM /!\ This script needs to run in the USER context /!\

IF EXIST "C:\Users\%USERNAME%\AppData\Local\Power-user\" (
    echo Uninstalling Power-user software
    wmic product where name="Power-user" call uninstall
)





If Power-user is installed in C:\Program Files (x86)\Power-user\

  • Launch a command line (e.g. CMD) in the user context. Paste this block of code and run it to deactivate the user license, after replacing "XXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXX" with your license key:
REM /!\ This script needs to run in the USER context /!\

REM ---- EDITABLE SECTION ----------------------------------------------------------------

REM Define the parameters to deactivate the end-user license:

REM 1. License key that was used during Power-user activation
SET license_key="XXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXX"

REM 2. Installation path
SET install_path=C:\Program Files (x86)

REM ---- END OF EDITABLE SECTION ---------------------------------------------------------

REM Deactivation of the user license providing the user name and license key
"%install_path%\Power-user\PowerUserActivator.exe" "deactivate-license" %USERNAME% %license_key%
  • Launch a command line (e.g. CMD) in the admin context, and run this block of code to uninstall:
REM /!\ This script needs to run in the ADMIN context /!\

echo Deleting Power-user registry files in HKEY_LOCAL_MACHINE and uninstalling Power-user

REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\PowerPoint\Addins\Power-user"
IF %errorlevel% == 0 (
    REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\PowerPoint\Addins\Power-user" /f
)

REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Excel\Addins\Power-user"
IF %errorlevel% == 0 (
    REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Excel\Addins\Power-user" /f
)

REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Word\Addins\Power-user"
IF %errorlevel% == 0 (
    REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Word\Addins\Power-user" /f
)

REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VSTO\SolutionMetadata\{C9A99E3A-2C3A-4B1A-A6FB-18119F6E5655}"
IF %errorlevel% == 0 (
    REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VSTO\SolutionMetadata\{C9A99E3A-2C3A-4B1A-A6FB-18119F6E5655}" /f
)

REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VSTO\SolutionMetadata\{778063DF-B828-434D-A8E3-0471EAFB72B8}"
IF %errorlevel% == 0 (
    REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VSTO\SolutionMetadata\{778063DF-B828-434D-A8E3-0471EAFB72B8}" /f
)

REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VSTO\SolutionMetadata\{B40D43CA-24F8-4B92-A934-0D29E0898DDC}"
IF %errorlevel% == 0 (
    REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VSTO\SolutionMetadata\{B40D43CA-24F8-4B92-A934-0D29E0898DDC}" /f
)

REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VSTO\SolutionMetadata" /v "file:///C:\Program Files (x86)\Power-user\PowerUser_Excel_AddIn.vsto"
IF %errorlevel% == 0 (
    REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VSTO\SolutionMetadata" /v "file:///C:\Program Files (x86)\Power-user\PowerUser_Excel_AddIn.vsto" /f
)

REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VSTO\SolutionMetadata" /v "file:///C:\Program Files (x86)\Power-user\PowerUser_PPT_AddIn.vsto"
IF %errorlevel% == 0 (
    REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VSTO\SolutionMetadata" /v "file:///C:\Program Files (x86)\Power-user\PowerUser_PPT_AddIn.vsto" /f
)

REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VSTO\SolutionMetadata" /v "file:///C:\Program Files (x86)\Power-user\PowerUser_Word_AddIn.vsto"
IF %errorlevel% == 0 (
    REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VSTO\SolutionMetadata" /v "file:///C:\Program Files (x86)\Power-user\PowerUser_Word_AddIn.vsto" /f
)

REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VSTO\Security\Inclusion\906A23B2-68E3-415C-AF2E-85A407D646A1"
IF %errorlevel% == 0 (
    REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VSTO\Security\Inclusion\906A23B2-68E3-415C-AF2E-85A407D646A1" /f
)

REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VSTO\Security\Inclusion\854EDAC1-1E40-41A1-A375-A7EDA0AF1F88"
IF %errorlevel% == 0 (
    REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VSTO\Security\Inclusion\854EDAC1-1E40-41A1-A375-A7EDA0AF1F88" /f
)

REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VSTO\Security\Inclusion\B07A7B0A-D287-46CE-95B8-21B747CC0CEF"
IF %errorlevel% == 0 (
    REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VSTO\Security\Inclusion\B07A7B0A-D287-46CE-95B8-21B747CC0CEF" /f
)

IF EXIST "C:\Program Files (x86)\Power-user\" (
    echo Uninstalling Power-user software
    wmic product where name="Power-user" call uninstall
)


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article