我正在使用batch file将Internet Explorer重置为出厂默认设置。 我还想删除:所有下载,历史logging,Cookie和caching,以及用户IEconfiguration文件中的其他内容。
有一个Powershell脚本来做到这一点。 你将需要为你的环境/需要调整它。 就目前而言,这需要人类的互动。 它被发现在这个超级用户职位上 ,由Aman Dhally创build。
#+-------------------------------------------------------------------+ #| = : = : = : = : = : = : = : = : = : = : = : = : = : = : = : = : = | #|{>/-------------------------------------------------------------\<}| #|: | Author: Aman Dhally | :| #| :| Email: [email protected] #|: | Purpose: Reset Internet Explorer Setting to Default #| :| #|: | more info: http://newdelhipowershellusergroup.blogspot.in/ #| :| #|: | Date: 23 - July - 2012 #|: | 16:29 #| :| /^(oo)^\ Version: 1 |: | #|{>\-------------------------------------------------------------/<}| #| = : = : = : = : = : = : = : = : = : = : = : = : = : = : = : = : = | #+-------------------------------------------------------------------+ ## Load Assembly ## [void][reflection.assembly]::Load("System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089") #- "`n" Write-Host " ============================================" -ForegroundColor 'Green' Write-Host " [ Resetting IE To Default Settings]" -ForegroundColor 'Red' Write-Host " ============================================" -ForegroundColor 'Green' "`n" ### "`n" $arrOfficeProcs = "iexplore" $continue = $false cls #Check for open Office apps do { $arrRunning = @() foreach ($proc in $arrofficeProcs) { if(((get-process $proc -ea SilentlyContinue) -ne $Null)){ $arrRunning += $proc } } if ($arrRunning.length -gt 0 ) { $d = [System.Windows.Forms.MessageBox]::Show( "There are currently one or more Internet Explorer windows Open.`n`nYou must close down all Internet explorer windows before reset it to default.", "Reset IE Settings to Default...", [System.Windows.Forms.MessageBoxButtons]::RetryCancel, [System.Windows.Forms.MessageBoxIcon]::Warning ) if ($d -eq [Windows.Forms.DialogResult]::Cancel) { exit } } else { $continue = $true write-host " No IE process are currently running" -ForegroundColor 'Green' "`n" Write-Host " Please TICK on `"Delete personal Settings`" and then click on `"Reset`" button <====" -ForegroundColor 'Yellow' "`n" & RunDll32.exe InetCpl.cpl,ResetIEtoDefaults | Out-Null "`n" Write-Host " ====> Please Launch Internet Explorer Now" -ForegroundColor 'Magenta' "`n" Write-Host " ============================================" -ForegroundColor 'Green' Write-Host " [ Resetting Done]" -ForegroundColor 'Red' Write-Host " ============================================" -ForegroundColor 'Green' "`n" } } while ( $continue -eq $false ) #### End of the Script #### A man D hally ---- [email protected]
要自动重置Internet Explorer,请按照下列步骤操作:
注意:这个微软修复它是由Windows 7,Windows Vista和Windows XP支持的。
下载: http : //go.microsoft.com/?linkid=9646978
在“文件下载”对话框中,单击“运行”,然后按照向导中的步骤操作。
在“重置Internet Explorer设置”对话框中,单击“重置”。
如果您还想删除浏览logging,search提供程序,加速器,主页,跟踪保护和ActiveX过滤数据,请单击以选中删除个人设置checkbox。
当Internet Explorer完成应用默认设置时,单击closures,然后再次单击closures。
closures,然后启动Internet Explorer。