Created
January 10, 2022 08:00
-
-
Save krymtkts/ba83a0612bba84b5e8229d64e9d8681a to your computer and use it in GitHub Desktop.
Move the Taskbar to the Top in Windows 11.
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
$ShowHex = { param ([array]$arr) ($arr | % { [System.Convert]::ToHexString($_) }) -join ' ' } | |
$path = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3' | |
$key = 'Settings' | |
$org = Get-ItemProperty $path | Select-Object -ExpandProperty $key | |
$ShowHex.Invoke((, $org)) | |
$new = @() + $org | |
$new[12] = 0x01 | |
$ShowHex.Invoke((, $new)) | |
Compare-Object $org $new | |
Set-ItemProperty $path -name $key -Value $new | |
Stop-Process -Name explorer -Force | |
## if explorer doesn't restart, start explorer manually. | |
# Start-Process -Name explorer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment