Skip to content

Instantly share code, notes, and snippets.

@ryo-murai
Created March 28, 2014 02:32
Show Gist options
  • Save ryo-murai/9824007 to your computer and use it in GitHub Desktop.
Save ryo-murai/9824007 to your computer and use it in GitHub Desktop.
IEが10秒ごとに開いて閉じるだけで離席時のロッk
# 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