Uninstalling Power-user by script

Modified on Thu, 23 Feb 2023 at 05:01 PM

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

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



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 on line 2:
SET user_name=%USERNAME%
SET license_key="XXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXX"

SET install_path=C:\Users\%user_name%\AppData\Local

REM Deactivation of the user license providing the license key and user name
"%install_path%\Power-user\PowerUserActivator.exe" "deactivate-license" %user_name% %license_key%
  • Paste this block of code and run it:
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 admin 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 on line 2:
SET user_name=%USERNAME%
SET license_key="XXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXX"

SET install_path=C:\Program Files (x86)

REM Deactivation of the user license providing the license key and user name
"%install_path%\Power-user\PowerUserActivator.exe" "deactivate-license" %user_name% %license_key%

  • Paste this block of code and run it to uninstall:
echo Deleting Power-user registry files in HKEY_LOCAL_MACHINE and uninstalling Power-user software

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.vsto"
IF %errorlevel% == 0 (
    REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VSTO\SolutionMetadata" /v "file:///C:\Program Files (x86)\Power-user\PowerUser_Excel.vsto" /f
)

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

REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VSTO\SolutionMetadata" /v "file:///C:\Program Files (x86)\Power-user\PowerUser_Word.vsto"
IF %errorlevel% == 0 (
    REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VSTO\SolutionMetadata" /v "file:///C:\Program Files (x86)\Power-user\PowerUser_Word.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 atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article