# This scrip reset Internet Explorer personal settings. # Tested on windows 7 workstation. Try{ $arrOfficeProcs = "iexplore" $continue = $false do { $arrRunning = @() foreach ($proc in $arrofficeProcs) { if(((get-process $proc -ea SilentlyContinue) -ne $Null)){ $arrRunning += $proc } } if ($arrRunning.length -gt 0 ) { Write-Host "There are currently open windows Internet Explorer. Close down all Internet explorer windows.." exit } else { $continue = $true write-host "IE are currently not running" Write-Host "Please tick on "Delete personal Settings" and then click on "Reset" button" & RunDll32.exe InetCpl.cpl,ResetIEtoDefaults | Out-Null } } while ( $continue -eq $false ) Write-Host "Successfully passed" exit 0 } Catch { Write-Host "Failure" exit 1001 }