Auto Restart IE After Close (or any other process)

After recently setting up some kiosks, I found I needed a script to allow users to close windows and tabs but still have Internet Explorer restart after the main window is closed. I use this script as a startup powershell script and it will check if Internet Explorer closed, an

 
 
 
 
 
(0)
1,309 times
Add to favorites
5/17/2016
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • Close and Restart
    1 Posts | Last post March 27, 2018
    • Can someone please show me how to alter this to shut down the browser and restart it after a certain time has passed, say every 24 hours? Thanks.
  • Run a poweshell script after IE closes
    2 Posts | Last post July 03, 2017
    • Hi Rbley. 
      
      I will like to alter you script to run a powershell script to clear the downloads folder after a user closes IE. Pls can you tell me how to do this. 
    • $targetprocess = "iexplore" 
      $process = Get-Process -Name $targetprocess 
       
      while ($true){ 
          while (!($process)){ 
              $process = Get-Process -Name $targetprocess 
              if (!($process)){ 
                  start-process $targetprocess 
              } 
              start-sleep -s 5 
          } 
          if ($process){ 
              $process.WaitForExit() 
              start-sleep -s 2 
              $process = Get-Process -Name $targetprocess 
              Get-ChildItem $env:USERPROFILE\Downloads -Include *.* -Recurse | foreach{ $_.Delete()}
          } 
      }