Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@tzarc
Created November 11, 2021 05:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tzarc/73fabaff1ce95dc1b752b2278c84e01e to your computer and use it in GitHub Desktop.
Save tzarc/73fabaff1ce95dc1b752b2278c84e01e to your computer and use it in GitHub Desktop.
# Run as administrator!
# Restore the Classic Taskbar in Windows 11
New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell\Update\Packages" -ErrorAction Ignore
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell\Update\Packages" -Name "UndockingDisabled" -PropertyType DWord -Value "00000001" -Force -ErrorAction Ignore
# Disable Taskbar / Cortana Search Box on Windows 11
New-Item -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Search" -ErrorAction Ignore
New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Search" -Name "SearchboxTaskbarMode" -PropertyType DWord -Value "00000000" -Force -ErrorAction Ignore
# Ungroup Taskbar Icons / Enable Text Labels in Windows 11
New-Item -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" -ErrorAction Ignore
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" -Name "NoTaskGrouping" -PropertyType DWord -Value "00000001" -Force -ErrorAction Ignore
# Small icon taskbar
New-Item -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -ErrorAction Ignore
New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "TaskbarSmallIcons" -PropertyType DWord -Value "00000001" -Force -ErrorAction Ignore
# Old right-click menu
New-Item -Path "HKCU:\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" -Force -ErrorAction Ignore
New-ItemProperty -Path "HKCU:\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" -Name "(Default)" -Value "x" -Force -ErrorAction Ignore
# Restart Explorer to see the changes
& taskkill /im explorer.exe /f
Start-Sleep 3
& explorer.exe
Start-Sleep 5
Write-Host "# Open up the notification area config so icons/clock etc. can be re-added to the taskbar:" -ForegroundColor Yellow
Write-Host "& explorer `"shell:::{05d7b0f4-2121-4eff-bf6b-ed3f69b894d9}`"" -ForegroundColor Magenta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment