- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-24-2016 05:48 AM
Is that any way of configuring credentials at one time? Or we need to give every time when we run a command.
Solved! Go to Solution.
- Labels:
-
Service Mapping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-24-2016 10:16 PM
I don't have a lot of experience PowerShell remoting since we run most of our stuff on the local mid server using its service's credentials, but I think you need to pass the credentials in using the -credential parameter like:
-credential $cred
See this wiki for reference: Orchestration PowerShell Activities - ServiceNow Wiki
And this other community post has an example:
Unable to run remote command through Powershell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-24-2016 02:06 PM
Hello Geetha,
You can define alternative credentials by going to Orchestration > Credentials, selecting New, and then selecting Windows Credentials. If you don't specify, then it will try to use the MID Server's service credentials.
If your instance is old (like mine), the Credentials module might be in the Runbook Automation application instead of Orchestration:
Reference: Credentials - ServiceNow Wiki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-24-2016 10:02 PM
Thanks Robert for your reply:)
I have set the credential value in Orchestration > Credentials under Windows Credentials. And also given the tag in powershell command. But still it is taking my MID server and giving below error.
Connecting to remote server failed with the following error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic.+ CategoryInfo : OpenError: (:) [], PSRemotingTransportException+ FullyQualifiedErrorId : PSSessionStateBroken
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-24-2016 10:16 PM
I don't have a lot of experience PowerShell remoting since we run most of our stuff on the local mid server using its service's credentials, but I think you need to pass the credentials in using the -credential parameter like:
-credential $cred
See this wiki for reference: Orchestration PowerShell Activities - ServiceNow Wiki
And this other community post has an example:
Unable to run remote command through Powershell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-25-2016 09:43 AM
Hi Geetha,
I see that you are using the -credential argument now in your other thread. Did it resolve this issue for you?