Skip to content

Instantly share code, notes, and snippets.

@likamrat
Created February 16, 2023 18:01
Show Gist options
  • Save likamrat/873f3b477d9da43f2756a80ed4975dc0 to your computer and use it in GitHub Desktop.
Save likamrat/873f3b477d9da43f2756a80ed4975dc0 to your computer and use it in GitHub Desktop.
Disable Microsoft Edge Sidebar
# Set variables to indicate value and key to set
$RegistryPath = 'HKLM:\SOFTWARE\Policies\Microsoft\Edge'
$Name = 'HubsSidebarEnabled'
$Value = '00000000'
# Create the key if it does not exist
If (-NOT (Test-Path $RegistryPath)) {
New-Item -Path $RegistryPath -Force | Out-Null
}
# Now set the value
New-ItemProperty -Path $RegistryPath -Name $Name -Value $Value -PropertyType DWORD -Force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment