Using Dynamic Environment Manager to run a script with elevated privileges
search cancel

Using Dynamic Environment Manager to run a script with elevated privileges

book

Article ID: 332296

calendar_today

Updated On:

Products

VMware Horizon 8

Issue/Introduction

This article provides information on how to use the User Environment Manager to run a script with elevated permissions.

Resolution

To run a script with elevated permissions using User Environment Manager:
  1. Convert the script into an executable format.
Example:

For Powershell script, download and use the PS2EXE : "Convert" PowerShell Scripts to EXE Files script.

Disclaimer: VMware is not responsible for the reliability of any data, opinions, advice, or statements made on third-party websites. Inclusion of such links does not imply that VMware endorses, recommends, or accepts any responsibility for the content of such sites.

Note: There are similar tools available for batch files, vb scripts, and so on.
  1. Use the UEM Management Console to enable Privilege Elevation.
  2. Create a UEM Privilege Elevation rule to elevate the script-executable.
You can use any of the three elevated application type rules (hash-based, path-based or publisher-based).
  1. If you want to run the script-executable at logon, create a UEM shortcut to the script-executable in the Startup folder.
Note: Do not enable the Run asynchronous check box on this UEM shortcut as you might experience timing issue and the script will not execute.