Skip to content

Instantly share code, notes, and snippets.

@ismits
Created September 24, 2019 16:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ismits/508a360b50e64f4395a27da0d9e4d25c to your computer and use it in GitHub Desktop.
Save ismits/508a360b50e64f4395a27da0d9e4d25c to your computer and use it in GitHub Desktop.
Configure IE First Run and basic settings
function Configure-IE
{
Write-Log "Disabling IE first run customize prompts"
$RegPath = "HKLM:\SOFTWARE\Policies\Microsoft\Internet Explorer\Main"
New-RegKey $RegPath
Write-Log (New-ItemProperty -Path $RegPath -Name "DisableFirstRunCustomize" -Value 1 -PropertyType "DWORD" -Force)
$RegPath = "HKLM:\SOFTWARE\Wow6432Node\Policies\Microsoft\Internet Explorer\Main"
New-RegKey $RegPath
Write-Log (New-ItemProperty -Path $RegPath -Name "DisableFirstRunCustomize" -Value 1 -PropertyType "DWORD" -Force)
Write-Log "Disabling IE Popup Manager"
$RegPath = "HKLM:\SOFTWARE\Policies\Microsoft\Internet Explorer\Restrictions"
New-RegKey $RegPath
Write-Log (New-ItemProperty -Path $RegPath -Name "NoPopupManagement" -Value 1 -PropertyType "DWORD" -Force)
$RegPath = "HKLM:\SOFTWARE\Wow6432Node\Policies\Microsoft\Internet Explorer\Restrictions"
New-RegKey $RegPath
Write-Log (New-ItemProperty -Path $RegPath -Name "NoPopupManagement" -Value 1 -PropertyType "DWORD" -Force)
Write-Log "Disabling IE Open Last Session"
$RegPath = "HKLM:\SOFTWARE\Policies\Microsoft\Internet Explorer\Recovery"
New-RegKey $RegPath
Write-Log (New-ItemProperty -Path $RegPath -Name "NoReopenLastSession" -Value 1 -PropertyType "DWORD" -Force)
$RegPath = "HKLM:\SOFTWARE\Wow6432Node\Policies\Microsoft\Internet Explorer\Recovery"
New-RegKey $RegPath
Write-Log (New-ItemProperty -Path $RegPath -Name "NoReopenLastSession" -Value 1 -PropertyType "DWORD" -Force)
return $true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment