Skip to content

Commit

Permalink
(#209) Disable Browser First Run Wizards
Browse files Browse the repository at this point in the history
Add function to disable browser first run wizards so that PowerShell
Invoke-WebRequest can work correctly, and so that Edge doesn't pester
the user to configure it.
  • Loading branch information
corbob committed Mar 21, 2024
1 parent 4ecdd31 commit 3e35a32
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions Boxstarter.WinConfig/Disable-BrowserFirstRun.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
function Disable-BoxstarterBrowserFirstRun {
<#
.SYNOPSIS
Turns off IE and Edge first run customization wizards.
.LINK
https://boxstarter.org
.EXAMPLE
Disable-BrowserFirstRun
Turns off IE and Edge first run customization wizards.
#>
$RegistryKeys = @(
@{ Key = 'HKLM:\Software\Policies\Microsoft\Edge' ; Value = 'HideFirstRunExperience' } # Edge
@{ Key = 'HKLM:\Software\Microsoft\Internet Explorer\Main' ; Value = 'DisableFirstRunCustomize' } # Internet Explorer 11
@{ Key = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main' ; Value = 'DisableFirstRunCustomize' } # Internet Explorer 9
)

foreach ($Key in $RegistryKeys) {
if (-not (Test-Path $Key.Key)) {
New-Item -Path $Key.Key -Force
}

New-ItemProperty -Path $Key.Key -Name $Key.Value -Value 1 -PropertyType DWORD -Force
}

Write-Output "IE and Edge first run customizations wizards have been disabled."
}

0 comments on commit 3e35a32

Please sign in to comment.