
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-14-2016 12:35 PM
I first was attempting to use the Run PowerShell functionality within the workflow editor to execute a sample script that writes a text file on a remote server. This script executes perfectly on the test MID server using the same credentials supplied in Service Now. I kept receiving error and fault messages despite all the fixes I've read on here thus far.
I also want to specify that I have 2 Windows MID servers, the main one and then a test one on a different domain. I would like to run this specifically on the Test MID server.
After reading more in depth online I saw that Run PowerShell was out dated and the now Activity Designer should be used. However I was experiencing the same problems. Depending on two fields, hostname and Credential Tag I have seen 3 different errors.
If I use the test domain or the full test server name or the IP of the test server as the hostname I receive this error:
"Authentication failure with the local MID server service credential."
If I set the hostname to localhost I receive this error:
"Unable to contact orchestrator URI"
Finally I tried making a Credential Tag referring to the instructions on Assigning Credentials to Orchestration Activities - ServiceNow Wiki
And tagged the specific credentials for my Test credentials and tried again with the host name being localhost and full test server name I receive this error:
"Authentication failure(s) with available Windows credentials from the instance. Credentials tried: "
I've tried checking the following things already:
Added All capabilities to MID server
Added quick discovery for test server IP
Changed MID Server Process in the windows service console to use local access credentials
Ran Script File again in the agent folder instance with credentials listed in ServiceNow
Ensured mid.use_powershell and mid.powershell.use_credentials were set to "true" in both MID servers as capitalization does matter.
Ensured my MID Server script file ended in .ps1
I'm sure I'm just overthinking this so if anyone has any ideas thank you in advance!
Solved! Go to Solution.
- Labels:
-
Service Mapping

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-18-2016 08:06 AM
Thank you for you quick response! I've been really busy with things this week otherwise I would've responded sooner.
When you log into the server running the service now process, run Services.msc, and you pull up the properties of the process, this radio button was what I was referring too. I ended up changing it, to see if that was the issue, but it still wouldn't work for me. Thank you very much for your help however!
What did solve my issue in the end, was entering IP ranges in the MID server. I then used the IP address of the Test MID server as the hostname field in the Powershell Activity Designer module.
This resolved the issue for me in the end.
I've also been following this thread: Hostname field of Run Powershell activity requires RPC? which seemed similar to my issue. But I'm happy to have this resolved!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-14-2016 01:02 PM
When you say "Changed MID Server Process in the windows service console to use local access credentials" do you mean your MID Server service configured to run as Localhost or just with an ID that only has local priviledges (no passthrough authentication)? If so, update it to run with credentials that allow the service to access other resources on the network besides the local computer that is running the MID Service. I've seen that cause a similar issue, even with credentials identified in the Credential table because the service doesn't have true authority to communicate outside the local machine.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-18-2016 08:06 AM
Thank you for you quick response! I've been really busy with things this week otherwise I would've responded sooner.
When you log into the server running the service now process, run Services.msc, and you pull up the properties of the process, this radio button was what I was referring too. I ended up changing it, to see if that was the issue, but it still wouldn't work for me. Thank you very much for your help however!
What did solve my issue in the end, was entering IP ranges in the MID server. I then used the IP address of the Test MID server as the hostname field in the Powershell Activity Designer module.
This resolved the issue for me in the end.
I've also been following this thread: Hostname field of Run Powershell activity requires RPC? which seemed similar to my issue. But I'm happy to have this resolved!