I would like to create a Powershell script that will re-open IE each time it is closed.
Do {
$ie = New-Object -Com InternetExplorer.Application
$ie.Navigate(www.google.com)
$ie.Visible = $true
}
While (?)
I plan on using Start-Sleep to give the application time to fully open and so it doesn’t keep spawning processes like mad, but I haven’t been able to find out which value links to finding out if the window has been closed. Perhaps I’m going about this wrong.
for(){Start iexplore www.stackoverflow.com -wait}