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

标签 powershell windows-server-2003 powershell-remoting

我正在测试 PowerShell 远程处理:

  1. 我安装了PowerShell V2 CTP3在我的 Windows XP 桌面上
  2. 我安装了WS-Management v1.1在我的 Windows 2003 R2 服务器上,该服务器已禁用防火墙且未安装 PowerShell。
  3. 两台计算机均装有 .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 及更高版本(尽管 future 几个月内应该会针对 XP/2003 发布 WSMan 更新)。

您对远程设备有管理权限吗?如果没有,请尝试使用凭据参数:

Get-WmiObject -ComputerName computerNameHere Win32_Service -Credential $cred

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

相关文章:

powershell - .add_Click({}) 的范围问题

powershell - 加密证书必须包含数据加密或 key 加密

PHP上传的文件权限不正确

c# - 从 ASP.net 运行 Windows 计划任务

php - 在 Windows Server 2003 上安装 PHP 5 - %1 不是有效的 Win32 应用程序

powershell - 使用凭据在多个服务器上的注册表中更改值

powershell - 从文本文件的文件名列表中将文件从一个文件夹移动到另一个文件夹

PowerShell 在多个提示函数和作用域之间切换

powershell - 如何在 PowerShell 远程处理 session 的提示中为机器名称添加颜色?

powershell - 如何在powershell远程 session (powershell)中编辑文件