执行以下Vb脚本会导致错误:( null)代码:8004100E来源:( null)错误
计划: - '列出Internet Explorer摘要设置
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & _
"\root\cimv2\Applications\MicrosoftIE")
Set colIESettings = objWMIService.ExecQuery _
("Select * from MicrosoftIE_Summary")
For Each strIESetting in colIESettings
Wscript.Echo "Active printer: " & strIESetting.ActivePrinter
Wscript.Echo "Build: " & strIESetting.Build
Wscript.Echo "Cipher strength: " & strIESetting.CipherStrength
Wscript.Echo "Content advisor: " & strIESetting.ContentAdvisor
Wscript.Echo "IE Administration Kit installed: " & _
strIESetting.IEAKInstall
Wscript.Echo "Language: " & strIESetting.Language
Wscript.Echo "Name: " & strIESetting.Name
Wscript.Echo "Path: " & strIESetting.Path
Wscript.Echo "Product ID: " & strIESetting.ProductID
Wscript.Echo "Version: " & strIESetting.Version
Next
错误: -
线:5 专栏:1 错误:(null) 代码:8004100E 资料来源:( null)
请帮助我克服这个问题。
答案 0 :(得分:2)
错误8004100E表示“无效的命名空间”。从Windows Vista开始,名称空间root\cimv2\Applications\MicrosoftIE
已从WMI中删除。