Reposition The Windows Taskbar

The following PowerShell script changes the StuckRects3 registry entry in the Windows Registry in order to reposition the Windows Taskbar.

The StuckRects3 registry entry can be found under the following current user registry key:

HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3

Once the registry entry has been changed the code stops the explorer process (which Windows will then automatically restart) and the taskbar is repositioned. Valid values for the StuckRects3 registry entry are 0, 1, 2 and 3 which correspond to left, top, right and bottom respectively.

A zipped version of the source file (tb_move.zip) is available via the download button on this page.

Please note that this code works perfectly on Windows 10, however does not seem to work when run under Windows 11 22H2. Once I have figured out a way to do reposition the taskbar under Windows 11 I will update the code accordingly.