无法启用Powershell Remoting

时间:2012-05-29 18:27:29

标签: powershell remoting

当我尝试启用PSRemoting时,我的机器对我大吼大叫,告诉我Set-WSManQuickConfig存在问题。我不确定我需要做些什么来解决它。想法?

PS C:\Windows\system32> Enable-PSRemoting

WinRM Quick Configuration
Running command "Set-WSManQuickConfig" to enable this machine for remote management through WinRM service.
 This includes:
    1. Starting or restarting (if already started) the WinRM service
    2. Setting the WinRM service type to auto start
    3. Creating a listener to accept requests on any IP address
    4. Enabling firewall exception for WS-Management traffic (for http only).

Do you want to continue?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"):
WinRM already is set up to receive requests on this machine.
Set-WSManQuickConfig : The WinRM client cannot complete the operation within the time specified. Check if the machine n
ame is valid and is reachable over the network and firewall exception for Windows Remote Management service is enabled.

At line:50 char:33
+             Set-WSManQuickConfig <<<<  -force
    + CategoryInfo          : InvalidOperation: (:) [Set-WSManQuickConfig], InvalidOperationException
    + FullyQualifiedErrorId : WsManError,Microsoft.WSMan.Management.SetWSManQuickConfigCommand

1 个答案:

答案 0 :(得分:0)

这是解决问题的解决方法,包括:

  • 您的计算机是否已连接到域或工作组?
  • 您是以本地管理员身份登录的吗?
  • PowerShell是作为“管理员”启动的吗?
  • 您的密码是空白的吗?
  • 您是否尝试连接到SharePoint场?
  • 您的服务器是否由托管公司托管/管理?
  • 您使用的是VirtualBox吗?
  • 你在运行Windows XP吗?
  • 您是否在不使用该语言的计算机上运行该命令 设置为英文?

https://serverfault.com/questions/337905/enabling-powershell-remoting-access-is-denied