Set Desktop Icon Spacing for All Users in Regedit

This guide explains how Windows administrators can configure custom horizontal and vertical desktop icon spacing for all interactive accounts using the Windows Registry Editor (Regedit). By modifying the IconSpacing and IconVerticalSpacing values across the default profile and active user hives, administrators can ensure a uniform desktop layout for both existing and newly created user accounts.

Understanding Desktop Icon Spacing Values

Desktop icon spacing is controlled by two string values located in the Control Panel\Desktop\WindowMetrics registry key:

The values are calculated in twips using negative integers. The standard default value is -1125. The valid range extends from -480 (minimum spacing) to -2730 (maximum spacing). The formula to determine twips from pixels is:

\[\text{Value} = \text{Pixels} \times -15\]


Step 1: Configure Settings for New User Accounts

To apply icon spacing to all future interactive user profiles, modify the Default User profile template.

  1. Press Win + R, type regedit, and press Enter to open the Registry Editor with administrative privileges.

  2. Select the HKEY_USERS key in the left pane.

  3. Click File > Load Hive… in the top menu.

  4. Navigate to C:\Users\Default (ensure hidden files are visible) and select NTUSER.DAT.

  5. Name the loaded key DefaultUser.

  6. Navigate to:

    HKEY_USERS\DefaultUser\Control Panel\Desktop\WindowMetrics
  7. Double-click IconSpacing and enter your desired custom value (e.g., -1500).

  8. Double-click IconVerticalSpacing and enter your desired custom value (e.g., -1500).

  9. Click the DefaultUser root key under HKEY_USERS.

  10. Click File > Unload Hive… and confirm by clicking Yes.


Step 2: Configure Settings for Existing User Accounts

For users who have already logged into the system, update their respective hives under HKEY_USERS.

  1. In the Registry Editor, expand HKEY_USERS.

  2. Locate the security identifier (SID) corresponding to each interactive account (avoiding keys ending in _Classes or built-in system SIDs like .DEFAULT, S-1-5-18, S-1-5-19, or S-1-5-20).

  3. For each active user SID, navigate to:

    HKEY_USERS\<User-SID>\Control Panel\Desktop\WindowMetrics
  4. Set the IconSpacing and IconVerticalSpacing strings to your target values.

Note: For the currently logged-in administrator account, the same values can be modified directly under HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics.


Step 3: Apply the Changes

Registry changes to icon metrics do not apply instantaneously to active sessions. To enforce the new spacing:

  1. Sign out of the affected user accounts and sign back in, or restart the computer.

  2. Alternatively, restart the Windows Explorer process via Task Manager or Command Prompt:

    taskkill /f /im explorer.exe && start explorer.exe