Custom Script Auditing in Privilege Management
When an application is allowed, elevated, or blocked, Privilege Management
To add an existing auditing script to an Application Rule:
- Create a new or edit an existing Application Rule within a Workstyle.
- In Run a Script, click on the dropdown menu, and select your custom script. If you can't change this value you need to create a custom script first.
- Click OK to save the Application Rule.
If you have any existing scripts, you can select them in the dropdown menu.
The auditing script supports the use of parameters within the script. Parameters are expanded using the COM interface PGScript.
strUserName = PGScript.GetParameter("[PG_USER_NAME]") strCommandLine = PGScript.GetParameter("[PG_PROG_CMD_LINE]") strAgentVersion = PGScript.GetParameter("[PG_AGENT_VERSION]")
Scripts created in the script editor can be reused in multiple Application Rules and On-Demand Application Rules. Any modification to an existing script affects all Workstyle rules that have been configured to execute that script.
For more information, please see Manage Privilege Management Audit Scripts.