Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

PowerShell Explicit Remoting Step Permissions

AdamRich
Tera Expert

Hello all,

 

I recently started diving into PowerShell Explicit Remoting Steps however I am struggling to find documentation on exactly what is needed for a process to run.

 

The PowerShell script I am trying to run is very simple however I keep getting the messages "Access Denied", when I sign into the Mid Server and open PowerShell ISE with the credentials and emulate ServiceNow triggering it using the Invoke-Command I get a "Success" response. 

 

 

try
{
$result = Start-ADSyncSyncCycle -PolicyType Delta
$status = "Success"
}
catch
{
$result = $_.Exception.Message
$status = "Error"
}


$response = @{
status = $status
body = $result
} | convertTo-Json

Write-Output $response

 

 

 

 

7 REPLIES 7

In the navigator, search for ECC queue. ECC queue holds all the outbound and inbound transactions which is triggered via a mid server.

SanjivMeher_0-1719944847535.png

 


Please mark this response as correct or helpful if it assisted you with your question.

unfortunately there was no Orchestration tab but I found it by going to the ecc_queue_list.do there was nothing there that had details on the error.

You should probably try the powershell script utility which is easier to debug,.

https://www.servicenow.com/community/itom-forum/powershell-utility-v2-execute-powershell-scripts-dir...


Please mark this response as correct or helpful if it assisted you with your question.