Policy
Remove "Disconnect" option from Shut Down dialog
Windows 11 25H2
Policy overview
Key metadata and intent for this policy.
Supported OS tags: Windows2000, WindowsServer2003, WindowsServer2008
This policy setting allows you to remove the "Disconnect" option from the Shut Down Windows dialog box in Remote Desktop Services sessions. You can use this policy setting to prevent users from using this familiar method to disconnect their client from an RD Session Host server. If you enable this policy setting, "Disconnect" does not appear as an option in the drop-down list in the Shut Down Windows dialog box. If you disable or do not configure this policy setting, "Disconnect" is not removed from the list in the Shut Down Windows dialog box. Note: This policy setting affects only the Shut Down Windows dialog box. It does not prevent users from using other methods to disconnect from a Remote Desktop Services session. This policy setting also does not prevent disconnected sessions at the server. You can control how long a disconnected session remains active on the server by configuring the "Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\RD Session Host\Session Time Limits\Set time limit for disconnected sessions" policy setting.
Registry values
How enabled and disabled states update the registry.
| Registry location | Type | Enabled value | Disabled value |
|---|---|---|---|
| HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoDisconnect | REG_DWORD | 1 | 0 |
Policy elements
Inputs and configuration options exposed by this policy.
This policy has no additional user input fields.
Other policies in this category
Explore related policies at the same level.
- ComputerAllow desktop composition for remote desktop sessionsWindows Server 2008 R2 only
- ComputerAlways show desktop on connectionAt least Windows Server 2003 with Service Pack 1
- UserAlways show desktop on connectionWindowsServer2008
- ComputerConfigure compression for RemoteFX dataAt least Windows Vista with Service Pack 1
- ComputerConfigure H.264/AVC hardware encoding for Remote Desktop ConnectionsAt least Windows Server 2016, Windows 10
- ComputerConfigure image quality for RemoteFX Adaptive GraphicsAt least Windows Server 2012, Windows 8 or Windows RT
- ComputerConfigure RemoteFX Adaptive GraphicsAt least Windows Server 2012, Windows 8 or Windows RT
- ComputerDo not allow font smoothingAt least Windows Server 2008 R2
- ComputerEnable enhanced shell experience for RemoteAppAt least Windows 11 Version 22H2
- ComputerEnable RemoteFX encoding for RemoteFX clients designed for Windows Server 2008 R2 SP1At least Windows Server 2012, Windows 8 or Windows RT
- ComputerEnforce Removal of Remote Desktop WallpaperAt least Windows Server 2003 operating systems or Windows XP Professional
- ComputerLimit maximum color depthWindows Server 2008, Windows Server 2003, Windows 7, Windows Vista, and Windows XP