In some setups, Windows 11 may automatically minimize windows when a monitor is disconnected by default. This helps prevent losing windows that were open in the external monitor when it’s disconnected.
However, this may not be an ideal setup in other situations. For users who constantly change docking stations and monitors, this may prove to be disruptive to their workflows. Some people may prefer their windows not being minimized and remaining in place, even when they disconnect their external monitors.
📌 Recommended deployment strategies for managing “Minimize windows when a monitor is disconnected”:
| Click to Choose a Method | 💻 Best for Individual Users | 💻💻💻 Best for Enterprises |
| Method 1: Settings (GUI) | ✓ | |
| Method 2: Registry Editor | ✓ | |
| Method 3: PowerShell Script | ✓ |
Ways to enable or disable the “Minimize windows when the monitor is disconnected” setting
You can manage this setting either through the Settings App or by making edits to the Windows Registry. In an enterprise setting, you can also use a Windows PowerShell script to deploy the registry edits to all your managed devices simultaneously.
📌 Prerequisites:
- The methods in this guide are applicable to all versions of Windows 11.
- If you’re going to make changes to the Windows Registry or deploy a script through Windows PowerShell, you will need administrator access. To check if you have the necessary permissions, go to the Start Menu > Settings > Accounts. The word “Administrator” should be printed under your username.
- This guide only applies to window behavior if a monitor is disconnected.
Method 1: Enable or disable via Settings app (GUI)
This is the simplest and most straightforward method. It’s ideal for individual users. The changes made will be retained across sessions.
- Open the Start Menu > Settings > System > Display.
- Select Multiple displays.
- Tick the box next to Minimize windows when a monitor is disconnected if you want to activate the setting. If you want to turn it off, uncheck the box.
Method 2: Configure via Registry Editor
This is a more advanced method, but the changes made here will only apply to the current user profile you’re using. In multi-user environments, you have to make these changes individually per user.
In enterprise setups, you can deploy registry edits by using a remote PowerShell tool.
*Note: Making incorrect edits to the Windows Registry can lead to system instability. Please make a backup before proceeding.
- Open the Start Menu and search for Registry Editor to open the program.
- Navigate to HKEY_CURRENT_USER\Control Panel\Desktop
- Find MonitorRemovalRecalcBehavior. If you can’t find it, follow these steps:
- Right-click Desktop > New > DWORD (32-bit) Value.
- Name the file MonitorRemovalRecalcBehavior.
- Double-click MonitorRemovalRecalcBehavior.
- If you want windows to minimize when a monitor is disconnected, set the value to 1. If you don’t want that, set the value to 0.
- Click OK.
- Restart Windows Explorer to apply the changes. To do that, follow these steps:
- Right-click the taskbar and select Task Manager.
- Go to the Processes tab and select Windows Explorer.
- Click Restart task.
Method 3: PowerShell script for automation
This method is ideal for enterprise setups. You can use an endpoint management tool to deploy the registry changes to all your managed devices.
- Open the Start Menu and search for Windows PowerShell to open the program.
- To disable the setting and prevent windows from minimizing when the monitor is disconnected, use this command and press Enter:
Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" `
-Name "MonitorRemovalRecalcBehavior" -Value 1
Stop-Process -Name explorer -Force
To enable the setting, use this command and press Enter:
Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" `
-Name "MonitorRemovalRecalcBehavior" -Value 0
Stop-Process -Name explorer -Force
Additional considerations when enabling or disabling this setting
- These changes are stored per user for each method. In multi-user setups, they have to be applied individually for each profile.
- There is no policy that controls this setting in the Local Group Policy Editor. For enterprise setups, use the Registry Editor or Windows PowerShell.
- If your organization’s setup involves docking stations, it’s recommended to disable the auto-minimize feature for a more seamless docking and undocking experience.
What does “Minimize windows when a monitor is disconnected” mean?
In some devices, Windows 11 automatically minimizes windows whenever you disconnect from an external monitor. This helps prevent “lost” windows, which can happen if you have a window open on an external monitor. Once that monitor is disconnected, you may have trouble finding the window in your current screen setup.
Why manage this setting?
If you disable this setting, you can preserve window layouts when you disconnect from a monitor and reconnect to a different one. This can improve people’s workflow and make things easier for people who have to constantly change working stations during the workday.
Managing this setting will also enforce more consistent desktop behaviors across all your managed devices. This is especially useful in VDI or remote, multi-monitor setups.
⚠️Things to look out for
| Risks | Potential Consequences | Reversals |
| You might make incorrect edits to the Windows Registry. | This may lead to incorrect settings or system instability. | Make a backup of the Windows Registry before making edits. If something goes wrong, you can use that to revert the changes. |
Standardize desktop behavior by managing “Minimize windows when a monitor is disconnected”
Individual users can easily enable or disable this through the Settings App. IT administrators, on the other hand, can take advantage of the Registry Editor and Windows PowerShell to deploy these changes to all their managed devices at the same time.
Enabling or disabling the “Minimize windows when monitor is disconnected” setting can help standardize desktop behavior for all users in your organization. Keeping it enabled will help prevent people from losing windows when they disconnect external monitors. On the other hand, disabling it might be more convenient for users who constantly change monitors in flexible docking station setups.
Related Topics:
- How to Move a Window That Is Off-Screen Back On-Screen in Windows 11
- How to Change Presentation Mode to Project Display in Windows 10
- How to Change DPI Scaling Level for Displays in Windows 10
- Clear and Reset External Display Cache in Windows 10
- IT Guide: How to Calibrate Your Monitor in Windows
Quick-Start Guide
For this specific feature, you would likely need to:
- Use a registry edit script
- Create a custom PowerShell or batch script to handle this behavior
The feature you’re asking about is typically a Windows system setting that can be configured through registry modifications. NinjaOne could help you deploy such a script across multiple devices using their script deployment capabilities.
If you want to implement this, it is recommend to:
- Create a custom script that modifies the relevant registry key
- Use NinjaOne’s script deployment to push this to target devices
- Consult with your IT team to ensure compatibility and testing
