PS C:\WINDOWS\system32\WindowsPowerShell\v1.0> enable-psremoting

WinRM 快速配置
正在运行命令“Set-WSManQuickConfig”,以使该计算机能够通过 WinRM
服务进行远程管理。
其中包括:
    1. 启动或重新启动(如果已启动) WinRM 服务
    2. 将 WinRM 服务类型设置为自动启动
    3. 创建一个侦听器以接受任意 IP 地址上的请求
    4. 对 WS-Management 流量启用防火墙例外(仅适用于 http)。

是否继续?
[Y] 是(Y)  [A] 全是(A)  [N] 否(N)  [L] 全否(L)  [S] 挂起(S)  [?] 帮助
(默认值为“Y”):a
WinRM 已更新为接收请求。
成功更改 WinRM 服务类型。
已启动 WinRM 服务。
已配置 LocalAccountTokenFilterPolicy 以远程向本地用户授予管理权限。

Set-WSManQuickConfig : 拒绝访问。
所在位置 行:50 字符: 33
+             Set-WSManQuickConfig <<<<  -force
    + CategoryInfo          : InvalidOperation: (:) [Set-WSManQuickConfig], In
   validOperationException
    + FullyQualifiedErrorId : WsManError,Microsoft.WSMan.Management.SetWSManQu
   ickConfigCommand

PS C:\WINDOWS\system32\WindowsPowerShell\v1.0> 
solution:
C:\Documents and Settings\jfcarpi>net stop winrm
C:\Documents and Settings\jfcarpi>net start winrm
C:\Documents and Settings\jfcarpi>winrm quickconfig

http://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/e1eabe4c-0796-420e-b03e-dffc71760b8d

 

 

posted on 2013-05-03 21:08  PatrickWong  阅读(1872)  评论(0编辑  收藏  举报