Created
November 11, 2021 05:18
-
-
Save tzarc/73fabaff1ce95dc1b752b2278c84e01e to your computer and use it in GitHub Desktop.
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
# 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