How to configure credentials to run Powershell commands on Remote server?

geethushanthosh
Kilo Contributor

Is that any way of configuring credentials at one time? Or we need to give every time when we run a command.

1 ACCEPTED SOLUTION

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


View solution in original post

5 REPLIES 5

Thanks Robert. Now it is working after giving credential parameter.