【问题标题】:powershell open internet explorer in kiosk mode with a terminate after 30 minspowershell 在信息亭模式下打开 Internet Explorer,30 分钟后终止
【发布时间】:2012-07-11 21:35:56
【问题描述】:

我想使用powershell v1.0,打开Internet Explorer并以kiosk模式转到某个网址,等待30分钟然后关闭Internet Explorer的所有实例。

到目前为止,我有以下 ps 命令,它将以 kiosk 模式打开 IE 并转到网址

Write-Host "Starting IE"
C:\Progra~1\Intern~1\iexplore.exe -k http://google.com

【问题讨论】:

  • 有什么问题?你能发布你的整个脚本吗?

标签: internet-explorer powershell


【解决方案1】:

按照您的代码:

Write-Host "Starting IE"
C:\Progra~1\Intern~1\iexplore.exe -k http://google.com
start-sleep -seconds 1800
get-process iexplore -ErrorAction silentlycontinue | stop-process -ErrorAction silentlycontinue

【讨论】:

    猜你喜欢
    • 2015-11-09
    • 2013-09-17
    • 2019-01-11
    • 2019-04-23
    • 2019-08-22
    • 2017-10-30
    • 1970-01-01
    • 1970-01-01
    • 2016-03-13
    相关资源
    最近更新 更多