Skip to content

Instantly share code, notes, and snippets.

@krymtkts
Created January 10, 2022 08:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krymtkts/ba83a0612bba84b5e8229d64e9d8681a to your computer and use it in GitHub Desktop.
Save krymtkts/ba83a0612bba84b5e8229d64e9d8681a to your computer and use it in GitHub Desktop.
Move the Taskbar to the Top in Windows 11.
$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