PowerShell | Load URL in the back

$IE=new-object -com internetexplorer.application
$IE.navigate2("http://ftduarte.blogspot.com/")
while ($oIE.busy)
{
#give some time for page to load
sleep -milliseconds 500 #or [System.Threading.Thread]::Sleep(500)
}
# $IE.visible=$true #optionally make browser appear
#TODO: stuff
$IE.Quit() #terminate COM object

Comments

Popular posts from this blog

Breaking down document locking in SharePoint

Working around X-Frame-Options for iframes

Document ID not being generated