Я пытаюсь удаленно подключиться к компьютеру через PowerShell, но получаю следующую ошибку:
WinRM client cannot process the request. If the authentication scheme is different from
Kerberos, or if the client computer is not joined to a domain, then HTTPS transport must be
used or the destination machine must be added to the TrustedHosts configuration setting. Use
winrm.cmd to configure TrustedHosts. Note that computers in the TrustedHosts list might not
be authenticated. You can get more information about that by running the following command:
winrm help config. For more information, see the about_Remote_Troubleshooting Help topic.
At line:1 char:1
+ etsn <ip address here> -Credential '<username here>'
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (<ip address here>:String) [Enter-PSSession], PSRemoti
ngTransportException
+ FullyQualifiedErrorId : CreateRemoteRunspaceFailed
Я пробовал добавить свой компьютер в доверенные хосты, но я продолжаю получать эту ошибку. Как мне удаленно подключиться к другому компьютеру через PowerShell?
решение1
Вам может потребоваться запустить Enable-PSRemoting на удаленной машине. Также убедитесь, что служба Remote Registry также запущена на удаленной машине.