【问题标题】:PowerShell, Open IE without Add-onsPowerShell,在没有附加组件的情况下打开 IE
【发布时间】:2010-09-21 16:23:44
【问题描述】:

我想将 Internet Explorer 作为没有附加组件的新 Com 对象打开。

$ie=New-Object -comobject InternetExplorer.Application

如何在没有附加组件的情况下启动 Internet Explorer?

【问题讨论】:

    标签: powershell comobject com-object


    【解决方案1】:

    比这更容易(假设 PowerShell 2.0 用于 Start-Process cmdlet):

    Start-Process iexplore.exe -ArgumentList -extoff
    

    Internet Explorer command line options 上查看此页面。

    【讨论】:

    • 是的,但是如何检索对 ComObject 的引用?使用 Get-Process 缺少 OP 的 $ie 对象包含的所有方法和属性。好像你只回答了一半。
    猜你喜欢
    • 2017-07-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-07-09
    • 2021-02-22
    • 2015-11-07
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多