Answered by:
Compatibility mode from command line - Is it possible?

Question
-
Does anyone know if you can run the compatibility function (from properties) via a command line switch? I am trying to add it to an .inf file so that an .exe will run automatically without being told to run in win XP compatible mode?
- Moved by Wilson SouzaMicrosoft employee Wednesday, July 6, 2011 10:02 PM moving this to the correct forum (From:DPM PowerShell)
Wednesday, July 6, 2011 8:26 AM
Answers
-
Hi,
You can try to follow this article:
Run Programs in Compatibility mode from the Command Prompt
Please Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
Related information:
Compatibility Mode
Data Value
Windows 95
WIN95
Windows 98 / Windows Me
WIN98
Windows NT 4.0 (Service Pack 5)
NT4SP5
Windows 2000
WIN2000
Windows XP (Service Pack 2)
WINXPSP2
Windows XP (Service Pack 3)
WINXPSP3
Windows Server 2003 (Service Pack 1)
WINSRV03SP1
Windows Server 2008 (Service Pack 1)
WINSRV08SP1
Windows Vista
VISTARTM
Windows Vista (Service Pack 1)
VISTASP1
Windows Vista (Service Pack 2)
VISTASP2
Windows 7
WIN7RTM
Settings
Data Value
Run in 256 colors
256Color
Run in 640 x 480 screen resolution
640x480
Disable visual themes
DISABLETHEMES
Disable desktop composition
DISABLEDWM
Disable display scaling on high DPI settings
HIGHDPIAWARE
Hope that helps.
Leo Huang
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.- Marked as answer by Leo Huang Thursday, July 14, 2011 9:18 AM
Friday, July 8, 2011 5:39 AM
All replies
-
Hi,
You can try to follow this article:
Run Programs in Compatibility mode from the Command Prompt
Please Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
Related information:
Compatibility Mode
Data Value
Windows 95
WIN95
Windows 98 / Windows Me
WIN98
Windows NT 4.0 (Service Pack 5)
NT4SP5
Windows 2000
WIN2000
Windows XP (Service Pack 2)
WINXPSP2
Windows XP (Service Pack 3)
WINXPSP3
Windows Server 2003 (Service Pack 1)
WINSRV03SP1
Windows Server 2008 (Service Pack 1)
WINSRV08SP1
Windows Vista
VISTARTM
Windows Vista (Service Pack 1)
VISTASP1
Windows Vista (Service Pack 2)
VISTASP2
Windows 7
WIN7RTM
Settings
Data Value
Run in 256 colors
256Color
Run in 640 x 480 screen resolution
640x480
Disable visual themes
DISABLETHEMES
Disable desktop composition
DISABLEDWM
Disable display scaling on high DPI settings
HIGHDPIAWARE
Hope that helps.
Leo Huang
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.- Marked as answer by Leo Huang Thursday, July 14, 2011 9:18 AM
Friday, July 8, 2011 5:39 AM -
Hi,
This helped me. You only need to add a line into Regedit and enjoy.
http://www.verboon.info/2011/03/running-an-application-as-administrator-or-in-compatibility-mode/
Regards,
Wednesday, January 1, 2014 11:42 PM -
If you need to launch .EXE installation from CMD or from Batch script in Compatibility mode use the ENVIRONMENT command before running the EXE.
Example:
set __COMPAT_LAYER=WinXP
Hit Enter and then run your executable
- Proposed as answer by AndrewBucklin Sunday, September 30, 2018 1:07 PM
Tuesday, April 11, 2017 4:43 PM