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 7aea2af
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Boxstarter.WinConfig/Disable-BrowserFirstRun.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
function Disable-BrowserFirstRun {
<#
.SYNOPSIS
Turns off IE and Edge first run customization wizards
.LINK
https://boxstarter.org
#>
$RegisteryKeys = @(
@{ 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 $RegisteryKeys) {
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 7aea2af

Please sign in to comment.