如何使 PowerShell V2 远程处理与 Windows Server 2003 一起工作?
我正在测试 PowerShell 远程处理:
- 在 Windows XP 桌面上安装了 PowerShell V2 CTP3
- 我 已安装 WS-Management v1。 1 在我的 Windows 2003 R2 服务器上,该服务器已禁用防火墙且未安装 PowerShell。
- 两台机器都有 .NET Framework 3.5 SP1
当我在桌面上键入时:
Get-WmiObject -ComputerName computerNameHere Win32_Service
我收到以下错误:
Get-WmiObject : Access denied. (HRESULT exception: 0x80070005 (E_ACCESSDENIED))
我还需要做什么才能完成这项工作?
I was testing PowerShell remoting:
- I installed PowerShell V2 CTP3 on my Windows XP desktop
- I installed WS-Management v1.1 on my Windows 2003 R2 server, which has its firewall disabled and no PowerShell installed.
- Both machines have .NET Framework 3.5 SP1
When I type on my desktop:
Get-WmiObject -ComputerName computerNameHere Win32_Service
I got the following error:
Get-WmiObject : Access denied. (HRESULT exception: 0x80070005 (E_ACCESSDENIED))
What else I have to do to get this work?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
它与远程处理无关。 XP/2003 不支持 PowerShell Remoting,仅支持 Vista/2008 及更高版本(尽管未来几个月内应该会针对 XP/2003 发布 WSMan 更新)。
您对远程盒子有管理权限吗? 如果没有,请尝试使用凭据参数:
Get-WmiObject -ComputerName computerNameHere Win32_Service -Credential $cred
It has nothing to do with Remoting. PowerShell Remoting is not supported on XP/2003, only Vista/2008 and up (though a WSMan update should be released for XP/2003 in the next few months).
Do you have admin priviligies on the remote box? If not, try with the credential parameter:
Get-WmiObject -ComputerName computerNameHere Win32_Service -Credential $cred
PSH V2 使用 WinRM 2.0(不是 1.1),并且此版本仅可用目前以 CTP 形式存在,并且仅限于 Vista 和 2008。PSH
团队博客文章提到(IIRC)这是一个 CTP 限制,但目前还不清楚如何解决。
PSH V2 uses WinRM 2.0 (not 1.1), and this is only available in its CTP form currently, and limited to Vista and 2008.
PSH team blog entries have mentioned (IIRC) this being a CTP limitation, but currently unclear how it will be resolved.
另一种方法是使用另一种远程解决方案,例如 /n 软件 PowerShell 服务器:www.nsoftware.com/powershell/
An alternative is to use another remoting solution like the /n software PowerShell Server: www.nsoftware.com/powershell/
用户遇到的问题与 PowerShell 远程处理无关。
Get-WmiObject -ComputerName computerNameHere
使用 WMI 远程处理。The issue the user is having is not with PowerShell Remoting.
Get-WmiObject -ComputerName computerNameHere
uses WMI Remoting instead.虽然这篇文章更多的是关于 wmi 而不是 powershell 远程处理,但这里是我在 Windows 2003 计算机上使用 powershell 远程处理的经验。 它与管理员用户一起工作正常。
但是,在 2003 年使用非管理员用户进行远程处理时,您可以正常运行 powershell cmdlet,但无法运行任何命令。
http://powershell.com/cs/forums/t/16205.aspx
Though this post is more about wmi than powershell remoting, here is my experience with powershell remoting on a windows 2003 machine. It works fine with a admin user.
But while doing remoting with a non-admin user on 2003, you can run powershell cmdlets fine, but can't run any.
http://powershell.com/cs/forums/t/16205.aspx