This functionality is built into Active Roles.
Create a new script module or update and existing script module with an onInit Event Handler and insert the desired custom script into the onInit function.
For example:
onInit ($Request)
{
#insert custom PowerShell here
}
Save the the PowerShell module and then restart the Active Roles Administration Service. Active Roles will execute all custom code in an onInit Event Handler when the service starts. It is not necessary to have the script module linked to a Policy or Scheduled Task.
© 2024 One Identity LLC. ALL RIGHTS RESERVED. Feedback Terms of Use Privacy Cookie Preference Center