[英]PowerShell enter-pssession
I'm using Windows 8.1. 我正在使用Windows 8.1。 and I'm trying to execute commands on another Windows 8.1.
我正在尝试在另一个Windows 8.1上执行命令。 by using PowerShell (enter-pssession or invoke-command).
通过使用PowerShell(enter-pssession或invoke-command)。 I usually have two types of error messages : one telling me that the access is denied and another one telling me that my Firewall does not allow an HTTPS exception.
我通常有两种错误消息:一种告诉我访问被拒绝,另一种告诉我我的防火墙不允许HTTPS异常。 None of the computers is a server.
没有一台计算机是服务器。 I have already tried executing Set-PSSessionConfiguration -ShowSecurityDescriptorUI -Name Microsoft.PowerShell without any result whatsoever.
我已经尝试执行Set-PSSessionConfiguration -ShowSecurityDescriptorUI -Name Microsoft.PowerShell,但没有任何结果。
I have already tried de-activating my firewall and have already added other computers to my list of trusted hosts. 我已经尝试停用防火墙,并且已经将其他计算机添加到我的受信任主机列表中。
I always put an IP address after enter-pssession. 我总是在enter-pssession之后放置一个IP地址。 Could this be the source of the problem?
这可能是问题的根源吗?
Thanks in advance :) 提前致谢 :)
PS Both computers have winrm, IIS and Apache. PS两台计算机都有winrm,IIS和Apache。
All you need to get started with remoting is available in the help: 帮助中提供了开始远程处理所需的所有信息:
PS> Get-Help about_Remote_TroubleShooting -ShowWindow
If you're not in a domain, take a look at this section: 如果您不在域中,请查看以下部分:
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.
[..]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.