Its true that Microsoft official wont allow you to change task bar positioning but i can understand how difficult is to work on remote desktop connection with bottom task bar.
Backup your registry first, (Export)
Here's one of the unofficial methods:
Backup your Registry: Before making any changes to the Registry, it's crucial to create a backup to ensure you can revert to the original state in case of any issues.
Open Registry Editor: Press Windows key + R to open the Run dialog box. Type "regedit" and press Enter.
- Navigate to the relevant Registry key: Go to the following path in the Registry Editor:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3
- Modify the Taskbar Alignment Value: Double-click on the "FE" (0x00) value and change the hexadecimal value to "0x02". This will align the taskbar to the right side of the screen.
- Restart Explorer: To apply the changes, you need to restart Explorer. Right-click on the taskbar and select "Task Manager". In the Task Manager, find "Windows Explorer" in the Processes tab, right-click on it, and select "Restart".
Here is a blog for your reference and detailed steps
https://tipsmake.com/steps-to-change-taskbar-position-on-windows-11
please let me know if it works.