Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.
If DisplaySwitch.exe /extend, /clone, /internal, or /external stopped working in Windows 11 22H2, try the numeric arguments instead. The reported mapping is 1 for internal display only, 2 for duplicate, 3 for extend, and 4 for external display only.
This behavior was reported on Windows 11 22H2 build 22621.1928, associated with the June 27, 2023 preview update KB5027303. It is a community-reported compatibility workaround, not a clearly documented permanent command-line contract, so test it on your specific build.
Quick reference
| Mode | Command | Result |
|---|---|---|
| Internal | DisplaySwitch 1 |
PC screen only |
| Duplicate | DisplaySwitch 2 |
Mirrors the displays |
| Extend | DisplaySwitch 3 |
Extends the desktop |
| External | DisplaySwitch 4 |
Second screen only |
The mapping comes from reports in the Microsoft Q&A discussion about DisplaySwitch.exe. It may vary between cumulative updates, graphics drivers, docks, and monitor configurations.
Quick wins for a faster PC:
Scan for outdated or missing drivers - takes under a minuteDriver Scan →Clear out junk files and repair common Windows errorsFree Scan →What changed?
Win+P and DisplaySwitch.exe are related but not identical. Win+P is the standard Windows shortcut that opens the Project panel with these choices:
#1 Best Overall
- Brilliant Color Illumination- With 11 unique backlights, choose the perfect ambiance for any mood. Adjust light speed and brightness among 5 levels for a comfortable environment, day or night. The double injection ABS keycaps ensure clear backlight and precise typing. From late-night tasks to immersive gaming, our mechanical keyboard enhances every experience
- Support Macro Editing: The K671 Mechanical Gaming Keyboard can be macro editing, you can remap the keys function, set shortcuts, or combine multiple key functions in one key to get more efficient work and gaming. The LED Backlit Effects also can be adjusted by the software(note: the color can not be changed)
- Hot-swappable Linear Red Switch- Our K671 gaming keyboard features red switch, which requires less force to press down and the keys feel smoother and easier to use. It's best for rpgs and mmo, imo games. You will get 4 spare switches and two red keycaps to exchange the key switch when it does not work.
- Full keys Anti-ghosting- All keys can work simultaneously, easily complete any combining functions without conflicting keys. 12 multimedia key shortcuts allow you to quickly access to calculator/media/volume control/email
- Professional After-Sales Service- We provide every Redragon customer with 24-Month Warranty , Please feel free to contact us when you meet any problem. We will spare no effort to provide the best service to every customer
- PC screen only
- Duplicate
- Extend
- Second screen only
Opening that panel is normal. The regression affected scripts and shortcuts that expected DisplaySwitch.exe with Windows 10-style switches to apply a mode immediately. On some Windows 11 22H2 builds, commands such as DisplaySwitch.exe /extend instead opened the Project interface or failed to change the topology.
Check your Windows build
Press Win+R, enter winver, and press Enter. You can also use PowerShell:
Get-ComputerInfo | Select-Object WindowsProductName, WindowsVersion, OsBuildNumber
Reports differed across Windows 11 22H2 builds, including 22621.521, 22621.1555, and 22621.1928. One participant reported the numeric syntax working on 22621.1928, while another reported that it did not work on 22621.1555. Later updates may behave differently. Build 22621.1928 is a historical 22H2 build, not a current Windows release target.
Free tools Windows power users keep installed
One-click scans. No signup required.
Rank #2
- Record Combos On the Fly, No Software Required - 5 dedicated macro keys (G1-G5) let you save complex combos or shortcuts directly on the keyboard, plus dedicated media controls for play/pause/skip.
- Swap Switches Without Soldering, Hype Clicky Feedback - The upgraded socket accepts almost any switch, and stock Blue switches deliver a distinct tactile bump and audible click on every keystroke.
- Built to Outlast Daily Gaming - Rated for 50 million keystrokes with double-shot keycaps that resist fading, so the board holds up to years of heavy use.
- Full Anti-Ghosting for Fast-Paced Games - 104 keys register accurately even during rapid multi-key combos, so your inputs land exactly when you press them.
- Optional Software for Power Users - Everyday use needs zero software, but for advanced RGB effects and deeper macro profiles, companion software is available whenever you want to go further.
Test the commands manually
Run one command at a time in Command Prompt or PowerShell:
DisplaySwitch 1
DisplaySwitch 2
DisplaySwitch 3
DisplaySwitch 4
If Windows cannot resolve the executable by name, use its full path.
PowerShell
& "$env:WINDIRSystem32DisplaySwitch.exe" 1
& "$env:WINDIRSystem32DisplaySwitch.exe" 2
& "$env:WINDIRSystem32DisplaySwitch.exe" 3
& "$env:WINDIRSystem32DisplaySwitch.exe" 4
Command Prompt
%windir%System32DisplaySwitch.exe 1
%windir%System32DisplaySwitch.exe 2
%windir%System32DisplaySwitch.exe 3
%windir%System32DisplaySwitch.exe 4
These commands select a display topology, not a particular numbered physical monitor. For example, “external” does not mean “monitor 2”; it means the external-display mode.
Rank #3
- 🎮𝐀𝐥𝐥-𝐢𝐧-𝐎𝐧𝐞 𝐆𝐚𝐦𝐢𝐧𝐠 & 𝐎𝐟𝐟𝐢𝐜𝐞 𝐂𝐨𝐦𝐛𝐨 - 𝐔𝐧𝐛𝐞𝐚𝐭𝐚𝐛𝐥𝐞 𝐕𝐚𝐥𝐮𝐞: Experience premium features without the premium price. This complete wired set includes a full-size RGB backlit keyboard AND a high-precision gaming mouse, offering everything you need for gaming, work, or study. Perfect for first-time gamers, students, and budget-conscious users seeking a durable and responsive upgrade from basic peripherals.
- ✨𝐅𝐮𝐥𝐥𝐲 𝐂𝐮𝐬𝐭𝐨𝐦𝐢𝐳𝐚𝐛𝐥𝐞 𝐑𝐆𝐁 & 𝐌𝐚𝐜𝐫𝐨𝐬 - 𝐘𝐨𝐮𝐫 𝐂𝐨𝐧𝐭𝐫𝐨𝐥, 𝐘𝐨𝐮𝐫 𝐒𝐭𝐲𝐥𝐞: Dive into your gameplay with dynamic lighting. The keyboard features 6 vibrant backlight modes, and the mouse boasts 10 lighting effects. Easily customize colors, brightness, and patterns using the intuitive software (downloadable at redragon.com). Record complex command sequences with the 5 dedicated macro keys for a competitive edge in any game.
- 🔇𝐐𝐮𝐢𝐞𝐭, 𝐂𝐨𝐦𝐟𝐨𝐫𝐭𝐚𝐛𝐥𝐞 & 𝐑𝐞𝐬𝐩𝐨𝐧𝐬𝐢𝐯𝐞 𝐓𝐲𝐩𝐢𝐧𝐠 𝐄𝐱𝐩𝐞𝐫𝐢𝐞𝐧𝐜𝐞: Designed for marathon sessions. The soft-touch membrane keys provide satisfying feedback while remaining remarkably quiet—ideal for shared spaces, late-night gaming, or office use. The included ergonomic wrist rest reduces fatigue, and the anti-ghosting keyboard ensures every key press is registered instantly, even during intense action.
- ⚙️𝐏𝐥𝐮𝐠, 𝐏𝐥𝐚𝐲, 𝐚𝐧𝐝 𝐏𝐞𝐫𝐬𝐨𝐧𝐚𝐥𝐢𝐳𝐞 - 𝐄𝐚𝐬𝐲 𝐒𝐞𝐭𝐮𝐩, 𝐋𝐚𝐬𝐭𝐢𝐧𝐠 𝐒𝐞𝐭𝐭𝐢𝐧𝐠𝐬: Get straight to the fun with true plug-and-play compatibility for Windows 10/11. Your personalized lighting and DPI settings are saved directly to the hardware, meaning they stay the way you set them, even after restarting your PC. Adjust the mouse sensitivity on-the-fly (800-7200 DPI) with a dedicated button for precision in any task.
- ✅𝐑𝐞𝐥𝐢𝐚𝐛𝐥𝐞 𝐏𝐞𝐫𝐟𝐨𝐫𝐦𝐚𝐧𝐜𝐞 & 𝐄𝐧𝐡𝐚𝐧𝐜𝐞𝐝 𝐂𝐨𝐦𝐩𝐚𝐭𝐢𝐛𝐢𝐥𝐢𝐭𝐲: Built to last and work seamlessly. We’ve listened to feedback to ensure reliable performance. This combo is rigorously tested for durability and offers wide compatibility with major PCs and laptops. It’s the trusted, feature-packed kit that delivers excitement for young gamers and reliable functionality for everyday users.
Rebuild custom hotkeys with AutoHotkey v2
After confirming the commands work interactively, you can assign them to hotkeys. This example uses AutoHotkey v2 syntax:
displaySwitch := A_WinDir "System32DisplaySwitch.exe"
$^!1::Run displaySwitch " 1" ; PC screen only
$^!2::Run displaySwitch " 2" ; Duplicate
$^!3::Run displaySwitch " 3" ; Extend
$^!4::Run displaySwitch " 4" ; Second screen only
Here, Ctrl+Alt+1 through Ctrl+Alt+4 select the four modes. This is specifically AutoHotkey v2 syntax; AutoHotkey v1 scripts use different function and hotkey conventions. The explicit path avoids PATH and working-directory ambiguity.
Create desktop shortcuts instead
- Right-click the desktop and choose New > Shortcut.
- Use one of these targets:
%windir%System32DisplaySwitch.exe 1
%windir%System32DisplaySwitch.exe 2
%windir%System32DisplaySwitch.exe 3
%windir%System32DisplaySwitch.exe 4
- Give each shortcut a descriptive name, such as Extend displays.
- Open the shortcut’s Properties and assign a shortcut key if desired.
Windows shortcut-key handling can be less predictable than AutoHotkey, and the shortcut may need to remain on the desktop or in the Start menu.
Rank #4
- Full-Size Wired Gaming Keyboard: The Logitech G915 X offers the latest innovations in gaming technology; sleek design and next-gen engineering elevate every level of performance
- Master the Game Your Way: Set up to 15 functions per key and remap commonly used commands to turn your keyboard into a personalized command center with KEYCONTROL
- Speed and Precision: Achieve speed, precision and comfort with low-profile GL mechanical switches; increase APM (actions per minute) rate with 1.3 mm actuation point and 3.2 mm total travel distance
- Elevated Typing Experience: With sand-blasted aluminum top plate and double-shot PBT keycaps, the G915 offers next-gen comfort with zero compromise to durability
- Light Up the Game With LIGHTSYNC RGB: Access ~16.8M colors to customize play and create themes; sync with other Logitech G gear in G HUB
If the numeric commands do nothing
- Confirm display detection. Open Settings > System > Display, select Identify, and use Detect. Check the monitor input, cable, dock, adapter, and power.
- Try Win+P. Select the required mode from the Project panel. This is the safest graphical fallback.
- Use the full executable path. This rules out command-resolution or quoting issues.
- Try both shells. Run the command in Command Prompt and PowerShell to exclude shell-specific invocation errors.
- Restart Explorer or Windows. Docking, graphics-driver, and monitor state can temporarily prevent a topology change.
- Update Windows and the graphics driver. The behavior varied across 22H2 builds and later updates may have corrected it.
If DisplaySwitch 4 is used while no external display is available, it may appear to do nothing or leave you with no visible output. A closed laptop lid can create the same problem when the selected mode depends on an unavailable panel.
Recover from a blank or wrong display
Press Win+P and choose a visible mode. If you cannot see the panel, reconnect or power on the monitor, open the laptop lid, and try again. You can also use Settings > System > Display after restoring a visible display.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Remote Desktop sessions, virtual machines, USB-C or Thunderbolt docks, DisplayLink adapters, and GPU-connected monitors may expose a different display topology from the physical machine. Test the shortcut in the environment where it will actually be used.
Best Value
- 100% Full-Size Layout, Premium Typing:The Keychron K10 Pro is a wireless full-size mechanical keyboard redesigned for a smooth, upgraded typing experience. Customize any key or macro with QMK, hot-swap any MX-style switches, and enjoy ultra-responsive performance with its 1000 Hz polling rate for minimal latency
- QMK Firmware with Keychron Launcher Online App : Easily remap keys, create macros, shortcuts, and combos via Keychron Launcher on Chrome, Edge, or Opera. With onboard memory, your changes sync across wired and wireless modes, offering flexibility and control in one seamless experience
- Wireless and Wired Mode: An excellent solution for multitasking. You can connect up to 3 devices via stable Bluetooth 5.1 for easy multitasking across laptop, phone, or tablet. Fully compatible with macOS, while still retaining seamless Windows functionality
- Silent Red Switches with Hot-Swap Flexibility: Features ultra-quiet K Pro silent red switches with up to 80 million keystrokes lifespan, perfectly minimizing the sound in quiet environments, e.g.: office and library. Or you can hot-swap with nearly any MX-style switch (including Cherry, Gateron, and Kailh) for a tailored experience
- Double-Shot PBT Keycaps & White Backlights: Designed with OSA-profile double-shot PBT keycaps that resist oil and offer lasting comfort. The south-facing white backlight illuminates beautifully from the typist’s angle, adding a touch of elegance to your workspace
Should you replace DisplaySwitch.exe?
A Microsoft Q&A participant reported copying a Windows 10 version of the executable as a workaround for the old slash arguments. This should not be the first choice. Replacing or overriding a Windows system executable can create version, signing, servicing, and compatibility problems, and a Windows-managed location may be repaired or overwritten by an update.
Use the numeric syntax when it works, retain the original Windows file, and avoid overwriting the system executable casually. If a later update changes the behavior, reassess the command on that build rather than assuming the 22H2 workaround remains valid.
Developer alternative: SetDisplayConfig
Software that needs a more controlled and maintainable solution can call the Windows SetDisplayConfig API with topology flags such as SDC_TOPOLOGY_INTERNAL, SDC_TOPOLOGY_CLONE, SDC_TOPOLOGY_EXTEND, SDC_TOPOLOGY_EXTERNAL, and SDC_APPLY. That approach is excessive for a personal shortcut but preferable for a dedicated administrative or developer utility.
The Tool Desk
Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Supported graphical alternatives
- Win+P and the Project panel.
- Settings > System > Display > Multiple displays.
- The Project control in Quick Settings, where available.
- Manufacturer utilities when the problem is specific to a dock, adapter, or graphics device.
Microsoft’s guidance also uses Win+P, Display settings, and display detection for duplicate-display problems: duplicate-screen guidance and display-settings guidance.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

