【问题标题】:How to make PowerShell V2 Remoting work with Windows Server 2003?如何使 PowerShell V2 远程处理与 Windows Server 2003 一起工作?
【发布时间】:2010-10-12 04:33:33
【问题描述】:

我正在测试 PowerShell 远程处理:

  1. 我在我的 Windows XP 桌面上安装了PowerShell V2 CTP3
  2. 我在我的 Windows 2003 R2 服务器上安装了WS-Management v1.1,该服务器禁用了防火墙并且没有安装 PowerShell。
  3. 两台机器都有 .NET Framework 3.5 SP1

当我在桌面上打字时:

Get-WmiObject -ComputerName computerNameHere Win32_Service

我收到以下错误:

Get-WmiObject : Access denied. (HRESULT exception: 0x80070005 (E_ACCESSDENIED))

我还需要做什么才能完成这项工作?

【问题讨论】:

    标签: powershell windows-server-2003 powershell-remoting


    【解决方案1】:

    PSH V2 使用WinRM 2.0不是 1.1),目前仅提供 CTP 形式,且仅限于 Vista 和 2008。

    PSH 团队博客文章提到 (IIRC) 这是 CTP 限制,但目前尚不清楚如何解决。

    【讨论】:

      【解决方案2】:

      它与 Remoting 无关。 XP/2003 不支持 PowerShell 远程处理,仅支持 Vista/2008 及更高版本(尽管在接下来的几个月内应为 XP/2003 发布 WSMan 更新)。

      你有远程盒子的管理员权限吗?如果没有,请尝试使用凭证参数:

      Get-WmiObject -ComputerName computerNameHere Win32_Service -Credential $cred

      【讨论】:

      • windows server 2003 现在支持 powershell 远程处理,不是吗?
      • 是的,windows server 2003 支持 powershell 远程处理。
      【解决方案3】:

      另一种方法是使用另一种远程解决方案,例如 /n 软件 PowerShell Server:www.nsoftware.com/powershell/

      【讨论】:

        【解决方案4】:

        用户遇到的问题与 PowerShell 远程处理无关。 Get-WmiObject -ComputerName computerNameHere 改为使用 WMI 远程处理

        【讨论】:

          【解决方案5】:

          虽然这篇文章更多的是关于 wmi 而不是 powershell 远程处理,但这是我在 windows 2003 机器上使用 powershell 远程处理的经验。它适用于管理员用户。 但是,在 2003 年与非管理员用户进行远程处理时,您可以正常运行 powershell cmdlet,但不能运行任何。

          http://powershell.com/cs/forums/t/16205.aspx

          【讨论】:

            猜你喜欢
            • 2010-12-14
            • 1970-01-01
            • 1970-01-01
            • 2017-03-08
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            • 2010-11-30
            • 1970-01-01
            相关资源
            最近更新 更多