Created
September 24, 2019 16:43
-
-
Save ismits/508a360b50e64f4395a27da0d9e4d25c to your computer and use it in GitHub Desktop.
Configure IE First Run and basic settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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