PowerShell enter-pssession



我使用的是Windows 8.1。我正在尝试在另一个Windows 8.1上执行命令。通过使用PowerShell(输入pssession或invoke命令)。我通常会收到两种类型的错误消息:一种告诉我访问被拒绝,另一种则告诉我我的防火墙不允许HTTPS异常。没有一台计算机是服务器。我已经尝试执行Set-PSSessionConfiguration-ShowSecurityDescriptorUI-Name Microsoft.PowerShell,但没有任何结果。

我已经尝试取消激活我的防火墙,并已将其他计算机添加到我的受信任主机列表中。

我总是在进入pssession后放一个IP地址。这可能是问题的根源吗?

提前感谢:)

附言:这两台电脑都有winrm、IIS和Apache。

开始远程处理所需的一切都可以在帮助中找到:

 PS> Get-Help about_Remote_TroubleShooting -ShowWindow

如果您不在域中,请查看以下部分:

HOW TO CONNECT REMOTELY FROM A WORKGROUP-BASED COMPUTER
-------------------------------------------------------
[..]
When the local computer is not in a domain, the following procedure is required
for remoting.
1. Configure the computer for HTTPS transport or add the names of the
   remote computers to the TrustedHosts list on the local computer.
[..]

最新更新