访问远程注册表时我有一个简单的连接到通过WMI和PowerShell远程计算机的注册表脚本:PowerShell的:通过WMI
$Server = server1
$HKLM = [UInt32] "0x80000002"
$WMI_Reg = [WMIClass] "\\server1\root\default:StdRegProv"
为广大300台的服务器,这是好的,我可以做后续查询注册表。但是,对于少数几个人,我收到此错误:
Cannot convert value "\server1\root\default:stdregprov" to type "System.Management.ManagementClass". Error: "not found"
这些都是2008 R2服务器。最初,存在无效WMI提供程序的问题,我必须在出现此错误之前重新编译cimWin32.mof。
关于接下来我能做什么的任何想法?
谢谢