Vbscript CreateObject上的运行时错误429
我收到运行时错误429,ActiveX错误:从vbscript调用以下代码时无法创建对象“InternetExplorer.Application”Vbscript CreateObject上的运行时错误429,vbscript,Vbscript,我收到运行时错误429,ActiveX错误:从vbscript调用以下代码时无法创建对象“InternetExplorer.Application” Set IE = CreateObject("InternetExplorer.Application") 我以非管理员帐户的身份运行代码。如果以管理员身份运行,代码工作正常。有什么问题吗?感谢您的帮助尝试以管理员身份运行以下代码: If Not WScript.Arguments.Named.Exists("elevate") Then C
Set IE = CreateObject("InternetExplorer.Application")
我以非管理员帐户的身份运行代码。如果以管理员身份运行,代码工作正常。有什么问题吗?感谢您的帮助尝试以管理员身份运行以下代码:
If Not WScript.Arguments.Named.Exists("elevate") Then
CreateObject("Shell.Application").ShellExecute WScript.FullName _
, WScript.ScriptFullName & " /elevate", "", "runas", 1
WScript.Quit
End If
Set IE = CreateObject("InternetExplorer.Application")
'Your rest of your code goes here
尝试使用以下代码以管理员身份运行:
If Not WScript.Arguments.Named.Exists("elevate") Then
CreateObject("Shell.Application").ShellExecute WScript.FullName _
, WScript.ScriptFullName & " /elevate", "", "runas", 1
WScript.Quit
End If
Set IE = CreateObject("InternetExplorer.Application")
'Your rest of your code goes here
我需要在非管理员帐户上运行这个。我试图在powershell中运行代码,但出现以下错误“检索CLSID为{0002DF01-0000-0000-C000-0000000000 46}的组件的COM类工厂失败”。这意味着什么?我需要在非管理员帐户上运行这个。我试图在powershell中运行代码,但出现以下错误“检索CLSID为{0002DF01-0000-0000-C000-0000000000 46}的组件的COM类工厂失败”。这是什么意思?