Skip to content

Instantly share code, notes, and snippets.

@petergs
Created October 29, 2023 20:13
Show Gist options
  • Select an option

  • Save petergs/f4eee49755b680601607ded4d4c1f1d9 to your computer and use it in GitHub Desktop.

Select an option

Save petergs/f4eee49755b680601607ded4d4c1f1d9 to your computer and use it in GitHub Desktop.
Set-WindowsPrefs.ps1
# Set Dark Mode
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme -Value 0
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name SystemUsesLightTheme -Value 0
# Taskbar preferences
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name TaskbarAl -Value 0 # Align Left
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name TaskbarDa -Value 0 # Hide Widgets
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name TaskbarMn -Value 0 # Hide Chat
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name ShowTaskViewButton -Value 0 # Hide TaskView
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Search -Name SearchBoxTaskbarMode -Value 0 # Hide SearchBox
# Turn off start menu search
New-Item -Path HKCU:\Software\Policies\Microsoft\Windows -Name Explorer
New-ItemProperty -Path HKCU:\Software\Policies\Microsoft\Windows\Explorer -Name DisableSearchBoxSuggestions -PropertyType DWord -Value 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment