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

前端 未结 5 2049
忘了有多久
忘了有多久 2021-01-03 21:55

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 *Serve         


        
5条回答
  •  天命终不由人
    2021-01-03 22:21

    In my case DNS was was pointing to the right IP yet there wase a typo in the hostname so basicaly the parameter -Computername and the actual hostname didn't match.

提交回复
热议问题