跨计算机执行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 ComputerBCategoryInfo: NotSpecified: [Get-WmiObject], UnauthorizedAccessException
FullyQualifiedErrorId: System.UnauthorizedAccessException,Microsoft.PowerShell.Commands.GetWmiObjectCommand
补充一下环境信息:两台电脑在同一个子网里,而且两边的防火墙都是关闭状态。我自己初步排查后,怀疑是DCOM或者WinRM的配置出了问题,但暂时没找到具体原因,有没有朋友遇到过类似的情况,能给点排查方向或者解决建议吗?
备注:内容来源于stack exchange,提问作者user270488
相关产品推荐
相关产品推荐

