我是Powershell的新手,我想从本地计算机连接到Windows FTP服务器。我没有管理员权限,因此无法以管理员身份运行。 我需要更改远程服务器上的文件名。我遇到以下提到的错误的连接问题。我对Powershell的了解非常有限,因为我是新手,请在连接方面为我提供帮助。
我还想知道是否有必要在远程服务器上也安装Powershell。还需要在远程和本地计算机上具有相同版本的Powershell吗?
请在下面找到错误:
Enter-PSSession : Connecting to remote server XXX.XX.XXX.XXX failed with the following error message : The WinRM client cannot proc
ess the request. Default
authentication may be used with an IP address under the following conditions: the transport is HTTPS or the destination is in the TrustedHosts list, and
explicit credentials are provided. Use winrm.cmd to configure TrustedHosts. Note that computers in the TrustedHosts list might not be authenticated. For more
information on how to set TrustedHosts run the following command: winrm help config. For more information, see the about_Remote_Troubleshooting Help topic.
At line:1 char:1
+ Enter-PSSession 'XXX.XX.XXX.XXX' -Credential:'xxx'
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (XXX.XX.XXX.XXX:String) [Enter-PSSession], PSRemotingTransportException
+ FullyQualifiedErrorId : CreateRemoteRunspaceFailed