You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

跨计算机执行Get-WmiObject命令出现权限拒绝错误的求助

跨计算机执行Get-WmiObject命令出现权限拒绝错误的求助

各位大佬好,我最近碰到一个头疼的问题,想请大家帮忙排查下:

在Computer B完成Windows更新后,我从Computer A上执行以下PowerShell命令查询它的操作系统信息:

Get-WmiObject -Class Win32_OperatingSystem -ComputerName "ComputerB"

结果直接返回了权限拒绝的错误,具体错误信息如下:

Get-WmiObject : Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
At line:1 char:1
Get-WmiObject -Class Win32_OperatingSystem -ComputerName ComputerB

CategoryInfo: NotSpecified: [Get-WmiObject], UnauthorizedAccessException
FullyQualifiedErrorId: System.UnauthorizedAccessException,Microsoft.PowerShell.Commands.GetWmiObjectCommand

补充一下环境信息:两台电脑在同一个子网里,而且两边的防火墙都是关闭状态。我自己初步排查后,怀疑是DCOM或者WinRM的配置出了问题,但暂时没找到具体原因,有没有朋友遇到过类似的情况,能给点排查方向或者解决建议吗?

备注:内容来源于stack exchange,提问作者user270488

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.17 09:03:07