1
我已经写了一个VBScript来将Win2k3 SP2服务器连接到多个Win2k3 + SP2 & WinXP + SP3机器通过WMI来查询系统Win32_OperatingSystem和Win32_ComputerSystem类。WMI GetObject权限被拒绝错误
Set loWMISvc = GetObject("winmgmts:{impersonationLevel=impersonate,authenticationLevel=Pkt}\\" & lsStore & "\root\cimv2")
Note: 'lsStore' is the IP address of the computer system I successfully connection too prior.
然后我试图创建一个新的对象到远程系统,保存着返回权限被拒绝错误(脚本的输出):
21/11/2011 1:17:50 PM SUCCESS: Established connection to store
D:\Program Files\SUREfire Systems\Support\MG\QueryStores\QueryStores.vbs(244, 5) Microsoft VBScriptruntime error: Permission denied: 'GetObject'
尽管设置对象ImpersonationLevel和AuthenticationLevel受限制的标记,WMI也显示在客户端和远程系统上正确安装。与远程系统的初始连接也适用于本地管理员用户。
还有什么可能导致我没有看到权限被拒绝的错误?任何帮助,将不胜感激。