-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#209) Disable Browser First Run Wizards
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
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
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
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." | ||
} |