Internet explorer Powershell中的Open Browser刚刚停止工作

Internet explorer Powershell中的Open Browser刚刚停止工作,internet-explorer,powershell,Internet Explorer,Powershell,在过去的几周里,我一直在创建Windows Powershell脚本来自动化Web UI测试。直到今天,它们都工作得很好。我运行了它们,得到了一百万个异常。我尝试手动创建InternetExplorer对象: $ie = new-object -com "InternetExplorer.Application" 我得到了这个错误: New-Object : Creating an instance of the COM component with CLSID {0002DF01-0000-

在过去的几周里,我一直在创建Windows Powershell脚本来自动化Web UI测试。直到今天,它们都工作得很好。我运行了它们,得到了一百万个异常。我尝试手动创建InternetExplorer对象:

$ie = new-object -com "InternetExplorer.Application"
我得到了这个错误:

New-Object : Creating an instance of the COM component with CLSID {0002DF01-0000-0000-C000-000000000046} from the IClassFactory failed due to the following error: 800704a6.
At line:1 char:17 + $ie = new-object  <<<< -com "InternetExplorer.Application"
新建对象:由于以下错误,从IClassFactory创建CLSID为{0002DF01-0000-0000-C000-0000000000 46}的COM组件实例失败:800704a6。

在第1行char:17+$ie=newobjectwird,该错误消息对应于以下内容:

系统已关闭 预定的。(HRESULT的例外情况: 0x800704A6)


您是否更新了IE或安装了需要重新启动机器的东西?

据我所知,没有。但我想重启不会有什么坏处。我很快就会回来的。我觉得自己很愚蠢,根本没想过重新开始。但是我的电脑还没开机,我还没用IE。谢谢!你试过重新启动windows吗?根据一些帖子,该问题表明存在待关闭问题。