ENTER-PSSESSION fails, client not trusted

To enable remote PowerShell session on a client, the client must be trusted.

You might get a similar error message thrown, when using enter-pssession COMPUTER


The easiest way to get a computer trusted is:

  1. Enable Trused Hosts group policy for Windows Remote Management (WinRM) using gpedit.
    1. Open gpedit.msc and navigate to: Computer Configuration\Administrative Templates\Windows Components\Windows Remote Management (WinRM)\WinRM Client
    2. Set the  Trusted Hosts setting to enabled
    3. Add the IP of the client machine to the TrustedHostsList value, or use * (Asterix) to enable all clients


Run a gpupdate /force to reload the group policies. After that you should be able to start a remote session with the client.

About Oliver Dehne
Father of two little boys, good boys. Sometimes I like coding, trying to be a good developer.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: