客户端设置:
Set-Item -Path WSMan:\localhost\Client\TrustedHosts -Value ‘*’
必须用 -Credential
Enter-PSSession -ComputerName 192.168.2.174 -Credential HEXBUG
PS:
Enable-PSRemoting 前必须将网络位置设为 专用
客户端设置:
Set-Item -Path WSMan:\localhost\Client\TrustedHosts -Value ‘*’
必须用 -Credential
Enter-PSSession -ComputerName 192.168.2.174 -Credential HEXBUG
PS:
Enable-PSRemoting 前必须将网络位置设为 专用