Reduce system tray icon spacing in Windows 10

There are two methods for this. Either method disables any HID compliant touch screens the device may have. This tricks windows into using the “desktop” icon spacing, rather than the more touch friendly spacing.

Via Powershell

Get-PnpDevice |
 Where-Object { $_.FriendlyName -match 'HID-Compliant Touch Screen' } |
Disable-PnpDevice

Via Device Manager

Look for the “HID-compliant touch screen” device under “Human Interface Devices and disable it. The changes should take effect immediately.

How to reduce system tray icon spacing? – Windows 10 Forums (tenforums.com)