0

I have winrm enabled on a remote server and from a member of that server's domain, I am able to run Powershell commands using PSSession. However, from a client in another domain, I get "Connecting to remote server ... failed with the following error message : The connection to the specified remote host was refused. + CategoryInfo : OpenError: (server FQDN:String) [], PSRemotingTransportException"

I did put the remote server into my client's TrustedHosts list. Here's an example command:

icm -comp ServerFQDN {dir} -cred domainShortName\MyUserID

Can anyone tell me what I need to do to make this work?

Roman
  • 405
  • 1
  • 7
  • 21

1 Answers1

-1

The client in another domain must management rights. Check this link: Configure Windows Remote Powershell Access

You may also to try to enable PSRemoting, if not enabled.

Enable-PSRemoting -Force

Take a look at this link: Enable Powershell Remoting and WinRM

Rajiv Iyer
  • 157
  • 9
  • That does not appear to address the error that I'm getting. I'm using an administrator user when specifying credentials. – Roman May 11 '20 at 20:00