gpt4 book ai didi

powershell - 如何使 PowerShell V2 远程处理与 Windows Server 2003 一起工作?

转载 作者:行者123 更新时间:2023-12-02 23:32:15 27 4
gpt4 key购买 nike

我正在测试 PowerShell 远程处理:

  • 我安装了PowerShell V2 CTP3在我的 Windows XP 桌面上
  • 我安装了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))

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

    最佳答案

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

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

    Get-WmiObject -ComputerName computerNameHere Win32_Service -Credential $cred

    关于powershell - 如何使 PowerShell V2 远程处理与 Windows Server 2003 一起工作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/626197/

    27 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com