Note: With recent updates (22H2 and later), Microsoft has patched this registry hack for some users. If the value TaskbarSi does not work for you, try creating a similar DWORD value named TaskbarSD .
Unlike Windows 10, Windows 11 removed the native settings slider for icon size. However, you can still achieve a smaller (or larger) taskbar using a Registry Editor tweak. windows 11 taskbar icon size