当发出带有或不带有-Force参数的Enable-PSSRemoting命令时,会发生此错误
Set-WSManQuickConfig : More data is available. At line:50 char:33 + Set-WSManQuickConfig <<<< -force + CategoryInfo : InvalidOperation: (:) [Set-WSManQuickConfig], InvalidOperationException + FullyQualifiedErrorId : WsManError,Microsoft.WSMan.Management.SetWSManQuickConfigCommand
我已经看了这个资源,以帮助解决这个问题http://www.howtogeek.com/117192/how-to-run-powershell-commands-on-remote-computers/和其他一些。
但似乎我的解决scheme不在其中。 我检查了作为pipe理员运行,检查了本地pipe理员没有被禁用或有一个空白的密码,也更新了有关LocalAccountTokenFilterPolicy的registry项。 将trustedhosts设置为*
这是在Windows Server 2008 R2 SP1(ENU x64)上本地完成的
结果来自:@tony rothbuild议的winrm quickconfig
WSManFault Message = More data is available. Error number: -2147024662 0x800700EA More data is available.
结果来自:winrm enumerate winrm / config / listener
Listener Address = * Transport = HTTP Port = 5985 Hostname Enabled = true URLPrefix = wsman CertificateThumbprint ListeningOn = 10.108.xx, 127.0.0.1, ::1, x:0:5ef5:79fb:6b:3590:f593:f4eb, x::5efe:10.108.11.20%13, fe80::6b
:x:f593:f4eb%11,x :: 8418:7b59:e7ff:ccd4%12
结果来自:dir WSMan:\ localhost \ shell
AllowRemoteShellAccess true IdleTimeout 180000 MaxConcurrentUsers 5 MaxShellRunTime 2147483647 MaxProcessesPerShell 15 MaxMemoryPerShellMB 150 MaxShellsPerUser 5
结果来自:dir WSMan:\ localhost \ client
Name Value Type ---- ----- ---- NetworkDelayms 5000 System.String URLPrefix wsman System.String AllowUnencrypted false System.String Auth Container DefaultPorts Container TrustedHosts * System.String
结果来自:Get-Item WSMan:\ localhost \ Service \ RootSDDL
Name Value Type ---- ----- ---- RootSDDL O:NSG:BAD:P(A;;GA;;;BA)S:P(AU;FA;GA;;;WD)(AU;SA;GWGX;;;WD) System.String
结果来自:Test-WsMan localhost
wsmid : http://schemas.dmtf.org/wbem/wsman/identity/1/wsmanidentity.xsd ProtocolVersion : http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd ProductVendor : Microsoft Corporation ProductVersion : OS: 0.0.0 SP: 0.0 Stack: 2.0
这是本地在服务器上,远程WORKGROUP客户端尚未涉及此scheme
这里是我的问题解决指南来解决这个问题,它包括:
https://serverfault.com/questions/337905/enabling-powershell-remoting-access-is-denied
我可以在全新的Windows Server 2008 R2 SP1上使用PowerShell 2完全重现此行为
使用提升的PowerShell, enable-psremoting -force导致Set-WSManQuickConfig : Access is denied. 错误。
解决方法是使用真正的“pipe理员”帐户(S-1-5 -…- 500)login并再次运行该命令。
我不知道为什么这会有所作为,但它为我做了。
刚刚遇到并在一些系统上解决了这个问题。 在这种特殊情况下,这两个系统不是域的一部分,用户帐户不是原始的“pipe理员”帐户,而是一个较新的帐户,也是本地pipe理员组的成员。
解决scheme来自以下博客文章,我漫步: 本地计算机上WinRM访问被拒绝 。 简而言之,从命令提示符(以pipe理员身份启动)运行以下命令:
> reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1 /f
之后,以pipe理员身份重新启动Powershell提示符并重新运行Enable-PSSRemoting 。 那很简单。