Enter-PSSession to remote server fails with "cannot find the computer"


My desktop is win7 and I am trying to connect to a server 2012.
Both hosts are on the same domain.

If I do:

Enter-PSSession -ComputerName *ServerName***   

I get the following failure message from winrm

Enter-PSSession : Connecting to remote server xxx failed with the following error message : WinRM cannot process the request. The following error occurred while using Kerberos authentication: Cannot find the computer xxx. Verify that the computer exists on the network and that the name provided is spelled correctly.*

It doesn't matter if I use just the server name or if I enter it fully qualified.

Both systems show $PSVersionTable.PSVersion 4 0 -1 -1

I have tried the various troubleshooting hints that I found i.e.
run Enable-PSRemoting -Force and also set TrustedHosts = * on both sides.
I also disabled the firewall service on both sides.
When I try to Enter-PSSession from the server to my desktop it works as desired.
But from my desktop to the server I always get the error message that the computer cannot be found.


After talking to our domain admin I think I found the cause of the problem.
The server is in a resource domain which only has a one way trust to the main OU.
This explains why I can do PS remoting from the server to the clients but not vice versa.
I found that I can use the IP address with the -Credential option in my case though which isn't nice but an acceptable workaround.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at


Login to comment


Enter-PSSession unable to remote into a remote desktop

Running CMD in Enter-PSSession

PowerShell Set-Location to file server PermissionDenied under Enter-PSSession

New-PSSession to localhost fails

openmpi installation fails locally and on remote server

PowerShell Core Script deployed as AWS Lambda function fails to remote connect into Windows EC2 Instance using the Commandlet new-pssession

Powershell Enter-PSSession use current credential

What rights are necessary to enter a PSSession with a DC?

How to automatically enter username and password when prompted to connect to a remote server

Gremlin GroovyTranslator generates wrong result and fails at remote server

Pushing mocks to remote wiremock server fails with "JSON Parsing" Error

add service reference fails with: Unable to connect to the remote server

SCP from Remote Mac to SSH'd Server Fails

Odoo v8 fails to load from remote server installation

Executing svn info in cronjob fails agianst remote server

Ansible copy from the remote server to ansible host fails

Pipenv fails to install boto3 on remote server (Heroku)

How to do a remote PSSession and run a script in the remote desktop?

enter-pssession invoke-command, when to use?

New-PSSession Fails Ubuntu to Windows using .NET Core Packages

New-MailboxExportRequest don't work in remote PSsession

RMI Remote connection fails

Connecting to remote sql server from dot net core from linux sometimes fails, then starts working randomly

Is there a way to provide a fallback (local) image when the preferred (external/server/remote/cloud) image fails to load?

bash script: capturing tcp traffic on a remote server sometimes works, sometimes fails. No errors

Kafka startup fails with zookeeper timeout (remote server), yet the machine can connect to zookeeper directly

Invoke-command fails until I run winrm quickconfig on remote server

React-native fetch fails with "Network request failed" when trying to hit remote server

Execute command on remote host fails