*错误:(null)代码:8004100E源:(null)是否要在运行以下vb脚本时停止调试?*错误

时间:2013-05-15 13:06:18

标签: vbscript command

执行以下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

错误: -


VbsEdit 64位

线:5 专栏:1 错误:(null) 代码:8004100E 资料来源:( null)

您想停止调试吗?

是否

请帮助我克服这个问题。

1 个答案:

答案 0 :(得分:2)

错误8004100E表示“无效的命名空间”。从Windows Vista开始,名称空间root\cimv2\Applications\MicrosoftIE已从WMI中删除。