Specify Work Folders settings: registry value SyncUrl and 3 moreUserHKCU\Software\Policies\Microsoft\Windows\WorkFolders
- Policy ID
- Pol_UserEnableWorkFolders
- Scope
- User Configuration
- Supported on
- At least Windows Server 2008 R2 or Windows 7
- Source
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
- Category
- Windows Components › Work Folders
Registry
SyncUrl
REG_SZUser- Enabled value
- Depends on the option value
- Element
- Work Folders URL:
- Value type
- REG_SZ
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\WorkFolders] ; Value names and types follow the ADMX. Replace <enter value> below with your own data "SyncUrl"="<enter value>"
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data reg add "HKCU\Software\Policies\Microsoft\Windows\WorkFolders" /v "SyncUrl" /t REG_SZ /d "<enter value>" /f
PowerShell
# Value names and types follow the ADMX. Replace <enter value> below with your own data New-Item -Path 'HKCU:\Software\Policies\Microsoft\Windows\WorkFolders' -Force | Out-Null New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\WorkFolders' -Name 'SyncUrl' -PropertyType String -Value '<enter value>' -Force | Out-Null
LocalFolderPath
REG_SZUser- Enabled value
- Depends on the option value
- Element
- Work Folders Local Path:
- Value type
- REG_SZ
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\WorkFolders] ; Value names and types follow the ADMX. Replace <enter value> below with your own data "LocalFolderPath"="<enter value>"
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data reg add "HKCU\Software\Policies\Microsoft\Windows\WorkFolders" /v "LocalFolderPath" /t REG_SZ /d "<enter value>" /f
PowerShell
# Value names and types follow the ADMX. Replace <enter value> below with your own data New-Item -Path 'HKCU:\Software\Policies\Microsoft\Windows\WorkFolders' -Force | Out-Null New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\WorkFolders' -Name 'LocalFolderPath' -PropertyType String -Value '<enter value>' -Force | Out-Null
GhostingPreference
REG_DWORDUser- Enabled value
- Depends on the option value
- Element
- On-demand file access preference:
| Item | Stored value |
|---|---|
| Enable (recommended) | 1 |
| Disable | 2 |
| User choice | 3 |
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\WorkFolders] ; Options (use only one) ; Enable (recommended) "GhostingPreference"=dword:00000001 ; Disable "GhostingPreference"=dword:00000002 ; User choice "GhostingPreference"=dword:00000003
CMD
:: Options (use only one) :: Enable (recommended) reg add "HKCU\Software\Policies\Microsoft\Windows\WorkFolders" /v "GhostingPreference" /t REG_DWORD /d 1 /f :: Disable reg add "HKCU\Software\Policies\Microsoft\Windows\WorkFolders" /v "GhostingPreference" /t REG_DWORD /d 2 /f :: User choice reg add "HKCU\Software\Policies\Microsoft\Windows\WorkFolders" /v "GhostingPreference" /t REG_DWORD /d 3 /f
PowerShell
# Common: create the key New-Item -Path 'HKCU:\Software\Policies\Microsoft\Windows\WorkFolders' -Force | Out-Null # Options (use only one) # Enable (recommended) New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\WorkFolders' -Name 'GhostingPreference' -PropertyType DWord -Value 1 -Force | Out-Null # Disable New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\WorkFolders' -Name 'GhostingPreference' -PropertyType DWord -Value 2 -Force | Out-Null # User choice New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\WorkFolders' -Name 'GhostingPreference' -PropertyType DWord -Value 3 -Force | Out-Null
AutoProvision
REG_DWORDUser- Checked
- 1
- Unchecked
- 0
- Element
- Force automatic setup
- Value type
- REG_DWORD
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\WorkFolders] ; Options (use only one) ; Checked "AutoProvision"=dword:00000001 ; Unchecked "AutoProvision"=dword:00000000
CMD
:: Options (use only one) :: Checked reg add "HKCU\Software\Policies\Microsoft\Windows\WorkFolders" /v "AutoProvision" /t REG_DWORD /d 1 /f :: Unchecked reg add "HKCU\Software\Policies\Microsoft\Windows\WorkFolders" /v "AutoProvision" /t REG_DWORD /d 0 /f
PowerShell
# Common: create the key New-Item -Path 'HKCU:\Software\Policies\Microsoft\Windows\WorkFolders' -Force | Out-Null # Options (use only one) # Checked New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\WorkFolders' -Name 'AutoProvision' -PropertyType DWord -Value 1 -Force | Out-Null # Unchecked New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\WorkFolders' -Name 'AutoProvision' -PropertyType DWord -Value 0 -Force | Out-Null