PowerShell Explicit Remoting Step Permissions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2024 09:12 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2024 09:31 AM
Can you confirm, the mid server service running on your mid server is using the service account which has access to powershell?
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2024 11:06 AM
Yes, that is correct.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2024 11:21 AM
Hmm...Can you also check the ECC queue, if there is a detailed error?
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2024 11:24 AM
How would I find that?