Created
March 28, 2014 02:32
-
-
Save ryo-murai/9824007 to your computer and use it in GitHub Desktop.
IEが10秒ごとに開いて閉じるだけで離席時のロッk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# powershell -executionPolicy unrestricted -command "ie.ps1" | |
while($True) { | |
#$shell = New-Object -COM WScript.Shell | |
#$ie = $shell.CreateObject("InternetExplorer.Application") | |
$ie = New-Object -Com InternetExplorer.Application | |
echo "launching ie" | |
$ie.navigate2("about:blank") | |
sleep 1 | |
$ie.visible=$true | |
sleep 10 | |
$ie.quit() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment