en-US windows user

Exclude directories in roaming profile

Verified with Windows 11 25H2 — updated on July 12, 2026

Windows 11 25H2

Supported on: At least Windows 2000

Path in the GPO console

User Configuration\Administrative Templates\System\User Profiles

Description

This policy setting lets you exclude folders that are normally included in the user's profile. As a result, these folders do not need to be stored by the network server on which the profile resides and do not follow users to other computers. Note: When excluding content from the profile you should try to exclude the narrowest set of data that will address your needs. For example, if there is one application with data that should not be roamed then add only that application's specific folder under the AppData\Roaming folder rather than all of the AppData\Roaming folder to the exclusion list. By default, the Appdata\Local and Appdata\LocalLow folders and all their subfolders such as the History, Temp, and Temporary Internet Files folders are excluded from the user's roaming profile. In operating systems earlier than Microsoft Windows Vista, only the History, Local Settings, Temp, and Temporary Internet Files folders are excluded from the user's roaming profile by default. If you enable this policy setting, you can exclude additional folders. If you disable this policy setting or do not configure it, only the default folders are excluded. Note: You cannot use this policy setting to include the default folders in a roaming user profile.

Registry

HKCU Software\Policies\Microsoft\Windows\System

More options available

Options

Prevent the following directories from roaming with the profile:
ExcludeProfileDirs text

Export Builder

BETA

Configure the state, scope and options, then generate .reg, PowerShell, Intune and SCCM outputs — or add the setting to a multi-setting collection.

These exports write the registry — this is not a managed GPO.

.reg file

Windows Registry Editor Version 5.00

; Exported from gporais.com
; Policy: Exclude directories in roaming profile
; State: Enabled
; Supported on: At least Windows 2000

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System]
"ExcludeProfileDirs"=""
More formats (PowerShell, Intune, SCCM)

PowerShell

# Exported from gporais.com
# Policy: Exclude directories in roaming profile
# State: Enabled
# Supported on: At least Windows 2000
# Warning: In SYSTEM context (the Intune default), HKCU targets the SYSTEM profile. Run this script using the logged-on credentials.

$path = 'HKCU:\Software\Policies\Microsoft\Windows\System'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'ExcludeProfileDirs' -Value '' -Type String

Building a multi-setting collection? Add this setting and generate combined .reg / PowerShell / GPO scripts.

Open the Builder

Embed this policy on your site

What to embed
Theme

Adds one script line: the theme follows your site’s appearance and the height fits the content. If your site blocks scripts, the embed follows the visitor’s system theme.

Preview