- 1 year ago
Is there a CLI command to toggle the 'Show all open windows when I press Alt+Tab' setting?
Comment
1 / 1
Yes, you can use the reg.exe
command-line tool in Windows to toggle the "Show all open windows when I press Alt+Tab" setting. This setting is controlled by a registry value.
To disable the setting (showing only the active window in Alt+Tab):
shellreg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\AltTabSettings" /v "AltTabSettings" /t REG_DWORD /d 1 /f
To enable the setting (showing all open windows in Alt+Tab):
shellreg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\AltTabSettings" /v "AltTabSettings" /t REG_DWORD /d 0 /f
After running the appropriate command, you may need to sign out and sign back in for the changes to take effect.
Note: Modifying the registry can have unintended consequences if done incorrectly. Make sure to double-check the command before running it, and it's always a good idea to create a backup of your registry before making any changes.
Additionally, the reg.exe
command requires administrative privileges to modify the registry.