powershell v2 remoting - How do you enable unencrypted traffic

我们两清 提交于 2019-12-03 09:25:48

AllowEncrypted is defined on the client end, via the WSMAN: drive. You must be running powershell.exe (or powershell_ise.exe) as an elevated process.

ps> cd WSMan:\localhost\Client
ps> dir
Name                      Value
----                      -----
NetworkDelayms            5000
URLPrefix                 wsman
AllowUnencrypted          false
Auth
DefaultPorts
TrustedHosts

You would change it like so (after changing to the directory above):

ps> set-item .\allowunencrypted $true

Hope this helps,

  • Oisin
KenSV

You probably will need to set the AllowUnencrypted config setting in both the Client and the Service. The Service setting has to be changed in the remote server using the following:

set-item -force WSMan:\localhost\Service\AllowUnencrypted $true

And don't forget to also enable Digest Authorization:

set-item -force WSMan:\localhost\Service\Auth\Digest $true

This worked for me:

enable-wsmancredssp –role server
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!