PolicyPak Least Privilege Manager: How do I elevate PowerShell scripts?

To elevate .PS1 PowerShell files, you need to use a Combo rule. Then you’ll use the following:

The Path condition should be
%SYSTEMROOT%\system32\WindowsPowerShell\v1.0\PowerShell.exe

policypak-least-privilege-manager-how-do-i-elevate-powershell-scripts-0

Then the Command-line arguments (which should be in “Any Argument In the List” mode) would be like the following:
"-file "C:\Users\westsalesuser1\Desktop\PS.ps1"

policypak-least-privilege-manager-how-do-i-elevate-powershell-scripts-1

Back