Registry data refreshed from vendors: Last vendor change detected: 5 Dec 2026Next refresh: 1st of the monthApp v1.4.0 (5 Dec 2026): Cleanup or tattoo: see what stays behind after a GPO is removed. Release notes
Windows (ADMX) · SharedFolders.admx

SharedFolders.admx: 2 policies

Generated from Microsoft Windows Server 2025 Datacenter build 26100 in-box templates + Windows 11 ADMX package (download id 108394) on 2026-12-05. Titles, explanations and "Supported on" text are Microsoft's own, from the en-US ADML file.

Allow DFS roots to be published

Per user Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016

Supported on: At least Windows Server 2003 operating systems or Windows XP Professional

When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works

Registry keyHKCU\Software\Policies\Microsoft\Windows NT\SharedFolders
Value namePublishDfsRoots
Enabled writes1 (REG_DWORD)
Disabled writes0 (REG_DWORD)
What it does (vendor explanation)

This policy setting determines whether the user can publish DFS roots in Active Directory Domain Services (AD DS).

If you enable or do not configure this policy setting, users can use the "Publish in Active Directory" option to publish DFS roots as shared folders in AD DS .

If you disable this policy setting, users cannot publish DFS roots in AD DS and the "Publish in Active Directory" option is disabled. Note: The default is to allow shared folders to be published when this setting is not configured.

Group Policy path: User Configuration > Administrative Templates > Shared Folders > Allow DFS roots to be published

PowerShell equivalent (generated from the template)
New-Item -Path 'HKCU:\Software\Policies\Microsoft\Windows NT\SharedFolders' -Force | Out-Null
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows NT\SharedFolders' -Name 'PublishDfsRoots' -Value 1 -PropertyType DWord -Force

Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".

ADMX: SharedFolders.admx · policy name PublishDfsRoots

Allow shared folders to be published

Per user Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016

Supported on: At least Windows Server 2003 operating systems or Windows XP Professional

When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works

Registry keyHKCU\Software\Policies\Microsoft\Windows NT\SharedFolders
Value namePublishSharedFolders
Enabled writes1 (REG_DWORD)
Disabled writes0 (REG_DWORD)
What it does (vendor explanation)

This policy setting determines whether the user can publish shared folders in Active Directory Domain Services (AD DS).

If you enable or do not configure this policy setting, users can use the "Publish in Active Directory" option in the Shared Folders snap-in to publish shared folders in AD DS.

If you disable this policy setting, users cannot publish shared folders in AD DS, and the "Publish in Active Directory" option is disabled. Note: The default is to allow shared folders to be published when this setting is not configured.

Group Policy path: User Configuration > Administrative Templates > Shared Folders > Allow shared folders to be published

PowerShell equivalent (generated from the template)
New-Item -Path 'HKCU:\Software\Policies\Microsoft\Windows NT\SharedFolders' -Force | Out-Null
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows NT\SharedFolders' -Name 'PublishSharedFolders' -Value 1 -PropertyType DWord -Force

Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".

ADMX: SharedFolders.admx · policy name PublishSharedFolders