- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-25-2020 12:18 AM
Hi,
I am trying to run a PowerShell script remotely from the MID server to our AD server. but it is failing with the following error.
Mid Server IP: 10.10.10.11
AD Server IP: 10.10.10.10
"errormessages": "Connecting to remote server 10.10.10.10 failed with the following error message: The WinRM client cannot process the request. Default authentication may be used with an IP address under the following conditions: the transport is HTTPS or the destination is in the TrustedHosts list, and explicit credentials are provided. Use winrm.cmd to configure TrustedHosts. Note that computers in the TrustedHosts list might not be authenticated. For more information on how to set TrustedHosts run the following command: winrm help config. For more information, see the about_Remote_Troubleshooting Help topic.\nHRESULT: [-2144108101]\n\nStack Trace:\n",
But when I am trying to run the PowerShell script directly from the MID Server to the AD server remotely it works fine for me.
What could be the potential reason?
Solved! Go to Solution.
- Labels:
-
Orchestration (ITOM)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-06-2020 05:00 AM
Hi,
Despite of all the desired configuration for WinRM, I was still having the issue.
I thought of checking the MID server service properties, at the first glanc I could see that service was runing under local system account, I was sure it should be runing thorugh Domain account.
I changes the Log on as to domain/userid and took MID server service restart and WinRM service restart.
Bingo.. it resolved my issue.
Thank You,
Ramesh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-26-2020 07:39 AM
HI,
Access denied. mean you are not allowed to connect. This has happened to me, You need WMI rights to authenticate and what type of credentials are you using in ServiceNow?
Windows?
Thanks,
Ashutosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-06-2020 05:00 AM
Hi,
Despite of all the desired configuration for WinRM, I was still having the issue.
I thought of checking the MID server service properties, at the first glanc I could see that service was runing under local system account, I was sure it should be runing thorugh Domain account.
I changes the Log on as to domain/userid and took MID server service restart and WinRM service restart.
Bingo.. it resolved my issue.
Thank You,
Ramesh