Dear Quest ARS experts,
Let me explain my problem,
On Quest ARS script, when I call a local powershell script. It works fine,
Here is the piece of code, when it works fine:
But If I change the ARS script to call a script located on a DFS folder (UNC path), I get a error message like this:
Post-processing operation on object caused a policy violation.
here is the code, whe the $NotifScript is replace by the same script copied on a network share (on a DFS folder):
#Command lines to create computer and its job in Altiris
$NotifScript = "\\" + $DOMAIN + "\IAMroot\IAM-Scripts\LN-Notification.ps1"########
if (($LogActivate -eq $true) -or ($FullLogActivate -eq $true))
{
$EventLog.ReportEvent(2,"CreateNotification: NotifScript/" + $NotifScript + "/")
}
Start-Job -FilePath $NotifScript -name "sendNotification" -RunAs32 -ArgumentList $NotifStatus,$SendTo,$CcTo,$MsgBodyFields
Note: If I copy thie portion of code on PowerGui (installed also on Quest ARS server), It works fine. So the UNC is understandable
by a powershell command line. There is something strange on Quest ARS scripting editor context.
Is there a limitation with Quest ARS script to use UNC share or is it something to change on powershell ?
best regards
jacques
Policy: Runs the script 'Users Mgmt - NC - Step5'
Object: CN=Bugs BUNNY,OU=5-Material Allocation,OU=NewComer,OU=ARS Users Mgmt,OU=Office,OU=Users,OU=MUC,DC=iislab,DC=amadeus,DC=net
Details: The 'Script Execution' policy encountered an error when running the script 'Users Mgmt - NC - Step5'.
At line: -528 char:14. AuthorizationManager check failed.
#Command lines to create computer and its job in Altiris
$NotifScript = "D:\Quest Software\Scripts\LN-Notification.ps1"
if (($LogActivate -eq $true) -or ($FullLogActivate -eq $true))
{
$EventLog.ReportEvent(2,"CreateNotification: NotifScript/" + $NotifScript + "/")
}
Start-Job -FilePath $NotifScript -name "sendNotification" -RunAs32 -ArgumentList $NotifStatus,$SendTo,$CcTo,$MsgBodyFields