Rolling-out Power-user by script

Modified on Tue, 17 Nov at 6:08 PM

IT admins can roll out Power-user centrally by script: a CMD script downloads the Power-user .msi installer, installs the add-in and activates the license on each computer, with no action needed from users. This is the best option when you have many users.

In short

  • First: contact us so we validate your license key for deployment (under 24 hours)
  • Recommended: install in AppData with one script in the user context; users then get updates on their own
  • Full version control: install in Program Files (admin context), and handle updates by script
  • Options: install the certificate, use Airplane mode, or hide specific features by registry key

Before you start

  1. Contact us to tell us you will package Power-user. We run a quick security check, in less than 24 hours, before your license key can be used for deployment.
  2. Have your Power-user license key ready: you will replace XXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXX with it in the EDITABLE SECTION of the scripts.
  3. Choose the installation folder:
Installation folderContextUpdates
C:\Users\%USERNAME%\AppData\Local (recommended)One script in the user contextUsers keep Power-user up to date on their own
C:\Program Files (x86)Install in the admin context, activate in the user contextYou control the version; each update must be installed by script

The scripts below are for CMD. If you prefer PowerShell, contact us and we will send you a PowerShell version.

  1. Open a command line (such as CMD) in the user context.
  2. In the EDITABLE SECTION of the script below, replace XXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXX with your license key, and choose how to get the user's email address (see Fixing email addresses).
  3. Run the script.
REM /!\ This script needs to run in the USER context /!\

REM Source: https://support.powerusersoftware.com/support/solutions/articles/80001024753-rolling-out-power-user-by-script

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

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

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

REM 2. Email address that will be used during Power-user activation
REM Retrieving the email address of the end-user

REM Option 1: retrieve email address dynamically using whoami /upn
for /f "delims=" %%A in ('whoami /upn') do set email=%%A

REM Option 2: Define the email address manually or using another method
REM SET email=""

REM Option 3: leave the email variable empty, and the user will be registered with the Windows User Name
REM SET email=""

REM Define variable that will be used to log installation execution
SET log_path="%temp%\Power-user_roll_out.log"

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

REM Make sure the license_key parameter is defined
IF %license_key% == "XXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXX" (
	echo "Please define the license_key parameter"
	pause
	exit
)

IF %license_key% == "" (
	echo "Please define the license_key parameter"
	pause
	exit
)

REM Define variable that will be used to download Power-user
SET download_path="%temp%\Power-user.msi"

REM Download the Power-user.msi file
curl.exe -L -s -f -o %download_path% "https://powerusersoftware.com/download/Power-user.msi"

REM Install Power-user
msiexec.exe /i %download_path% /QN /l*v %log_path%

REM Define variable that will be used to activate Power-user
SET install_path=C:\Users\%username%\AppData\Local

REM Activation of the end-user license providing the user name, license key and email address
"%install_path%\Power-user\PowerUserActivator.exe" %USERNAME% %license_key% %email%

The script downloads the Power-user .msi installer, installs it and activates the license. Power-user is then ready to use, with no action from the user. The installation log is saved in %temp%\Power-user_roll_out.log.

How to install Power-user in Program Files

We generally recommend the AppData installation, so that users can keep their version up to date without the IT admin. Install in C:\Program Files (x86) only if you want full control over the version used: users will not get updates on their own, and you will need to run the script again for each new version.

Step 1: prepare the installation folder

  1. Download the Power-user .msi installer and the Power-user packaged installation.zip folder.
  2. Unzip Power-user packaged installation.zip.
  3. Move the .msi installer into the unzipped folder.

Step 2: install Power-user in the admin context

  1. Open a command line in the admin context.
  2. Go to the unzipped folder, replacing <FolderPath> with its path:
cd <FolderPath>
  1. Run the installer:
install_admin.bat

Step 3: activate the license in the user context

Open a command line again, this time in the user context, and run the script below after replacing XXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXX with your license key in the EDITABLE SECTION:

REM /!\ This script needs to run in the USER context /!\

REM Source: https://support.powerusersoftware.com/support/solutions/articles/80001024753-rolling-out-power-user-by-script

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

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

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

REM 2. Email address that will be used during Power-user activation
REM Retrieving the email address of the end-user

REM Option 1: retrieve email address dynamically using whoami /upn
for /f "delims=" %%A in ('whoami /upn') do set email=%%A

REM Option 2: Define the email address manually or using another method
REM SET email=""

REM Option 3: leave the email variable empty, and the user will be registered with the Windows User Name
REM SET email=""

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

REM Make sure the license_key parameter is defined
IF %license_key% == "XXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXX" (
	echo "Please define the license_key parameter"
	pause
	exit
)

IF %license_key% == "" (
	echo "Please define the license_key parameter"
	pause
	exit
)

REM Define variables that will be used to install and activate Power-user
SET install_path=C:\Program Files (x86)

REM Activation of the end-user license providing the user name, license key and email address
"%install_path%\Power-user\PowerUserActivator.exe" %USERNAME% %license_key% %email%

Power-user is then installed and activated, with no action from the user.

Updates: when Power-user is installed in Program Files, software updates must also be installed by script.

Additional options for installation by script

Fixing email addresses

The scripts get the user's email address with whoami /upn (Option 1). If this command does not work in your environment, use Option 3 and leave the email empty: Power-user then uses the Windows user name with your organization's email domain.

If this does not give the real email addresses, send us a list matching Windows user names with real email addresses, and we will update the data in your admin portal.

Installing the certificate

The first time Office restarts after Power-user is installed, users might see a trust prompt. To avoid it, install the Power-user certificate in the Trusted Publisher store. To do it by script, open a command line in the user context and run:

REM /!\ This script needs to run in the USER context /!\

REM Source: https://support.powerusersoftware.com/support/solutions/articles/80001024753-rolling-out-power-user-by-script

SET download_path="%temp%\power_user_certificate.cer"

REM Download Power-user certificate
curl.exe -L -s -f -o %download_path% "https://powerusersoftware.com/download/power_user_certificate.cer"

certutil.exe -addstore -user TrustedPublisher %download_path%

Airplane mode

Some organizations must keep their computers isolated from the Internet. We do not recommend it unless it is really necessary, but Power-user can run in Airplane mode. To turn it on, run this command in the admin context:

REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Power-user" /v ContactServer /t REG_SZ /d "0" /f

Activation: if Airplane mode is turned on before activation, the license cannot be activated through our server. We can still activate it with an offline process: contact us for details.

AreaEffect of Airplane mode
License renewalsOur server cannot update the license validity. At each renewal, install a new Airplane mode version, or turn Airplane mode off, activate the updated license key and turn Airplane mode on again.
Admin portalNo access to the admin portal to monitor and manage licenses, and no license status or usage data.
Software updatesUpdates are not pushed to users. The admin can install them manually.
FeaturesPictures and Logos and the AI Assistant do not work, and you cannot set up shared libraries of slides, icons, images or Tombstones.

Hiding or disabling specific features

You can hide some features or Library items from users. Run the commands you need in the admin context:

Hide the AI Assistant feature for rewording text:

REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Power-user" /v EnableSmartRewording /t REG_SZ /d "0" /f

Hide the AI Assistant feature that suggests a slide:

REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Power-user" /v EnableSuggestASlide /t REG_SZ /d "0" /f

Hide the AI feature for generating pictures:

REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Power-user" /v EnableLibraryPicturesAI /t REG_SZ /d "0" /f

Hide all libraries that call third-party resources (currently Pexels, Unsplash, Logo.Dev, AI-generated pictures and the AI Assistant):

REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Power-user" /v EnableExternalLibraries /t REG_SZ /d "0" /f

Hide the Pictures menu of the Library:

REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Power-user" /v EnableLibraryPictures /t REG_SZ /d "0" /f

Hide the Tombstones menu of the Library:

REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Power-user" /v EnableLibraryTombstones /t REG_SZ /d "0" /f

For other deployment methods, see Deploying Power-user with Microsoft Intune and Rolling-out Power-user. To remove Power-user, see Uninstalling Power-user by script.

Frequently asked questions about rolling out Power-user by script

How do I deploy Power-user silently on many computers?

Run the Power-user CMD script in the user context on each computer. It downloads the Power-user .msi, installs it silently with msiexec /QN and activates the license with your license key, with no action from users.

Where should Power-user be installed: AppData or Program Files?

Power-user recommends C:\Users\%USERNAME%\AppData\Local, so users get updates on their own. Choose C:\Program Files (x86) only if you want to control the version, knowing that each update must then be installed by script.

Is there an .msi installer for Power-user?

Yes. The Power-user .msi installer is available at https://powerusersoftware.com/download/Power-user.msi, for IT admins who deploy Power-user centrally.

How do I avoid the trust prompt when Office starts after installing Power-user?

Install the Power-user certificate in the Trusted Publisher store, for example with certutil.exe -addstore -user TrustedPublisher, using the script provided in this article.

Can Power-user work without an Internet connection?

Yes, in Airplane mode, turned on with a registry key. In Airplane mode, license renewals, updates and the admin portal need manual handling, and features such as Pictures and Logos and the AI Assistant do not work.

How do I hide the AI Assistant in Power-user?

Run the REG ADD commands from this article in the admin context, for example with EnableSmartRewording or EnableSuggestASlide set to 0 under HKEY_LOCAL_MACHINE\SOFTWARE\Power-user.

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