npocmaka
Looks like some applications use this variable to run in a specific compatibility mode.
More interesting it can be used to suppress the UAC pop-up
It can be set also as in the registry
May be this is worthy enough to update these pages?
https://ss64.com/nt/syntax-elevate.html
https://ss64.com/nt/syntax-variables.html
----------------------------
#2 29 Mar 2016 20:43
DigitalSnow
Summary
* This will allow an Administrator capable user to run applications that request highestAvailable as a limited user.
* This also allows a limited user to try running applications without requesting for elevation. Though the application will probably error or crash since it needed Administrator privileges.
Example Requirements:
* A user who is a part of the Administrator group.
* An application with a manifest that requests the highestAvailable user group for default execution.
In an Administrator or non-Administrator command prompt, run
set __COMPAT_LAYER=RunAsInvoker
regedit
The application will run (using the user's native permissions (e.g. User group), meaning no UAC prompt) and allow you to browse the registry, but if you try to modify a protected area of the registry, it will fail.
In a non-Administrator command prompt, run
set __COMPAT_LAYER=
regedit
The UAC will now prompt before allowing the application to run.
https://superuser.com/questions/171917/ ... ges-or-uac
----------------------------
#3 29 Mar 2016 21:17
npocmaka
You can set more than one values at the same time separated with space !
Besides compatibility modes described in the link here are some OS compatibilities :
VistaRTM
DetectorsWin8 // i have no idea what this is used for
VistaSP1
VistaSP2
Win7RTM
Win8RTM
WINXPSP3
Win95
Installer // Also I'm not completely sure what's this
----------------------------
#4 29 Mar 2016 21:28
DigitalSnow
Familiar options to what are included in the Windows Application Compatibility Toolkit "ACT"?
Included on the Windows Assessment and Deployment Kit "ADK" for Windows 10
https://msdn.microsoft.com/en-us/window ... 13721.aspx
----------------------------
#5 30 Mar 2016 00:53
Simon Sheppard
I have added some notes on this to the Elevation page and also briefly on REG and REGEDIT pages.
Amazingly the early compatibility options for Win95 etc still seem to work
try this
Code: Select all
set __COMPAT_LAYER=256Color
"C:\Program Files\Microsoft Office 15\root\office15\winword.exe"
----------------------------
#6 30 Mar 2016 13:36
npocmaka
I have a newer office version which seems does not read the __COMPAT_LAYER variable.Simon Sheppard wrote:
I have added some notes on this to the Elevation page and also briefly on REG and REGEDIT pages.
Amazingly the early compatibility options for Win95 etc still seem to work
try thisand then look at how ugly the Office 2013 toolbars are in 256 colors!Code: Select all
set __COMPAT_LAYER=256Color "C:\Program Files\Microsoft Office 15\root\office15\winword.exe"
But media player does!
Looks like a fast way to change some monitor settings temporary through batch file. I hope I'll find at least one more installed by default utility that relies on __COMPAT_LAYER
----------------------------
#7 30 Mar 2016 14:38
DigitalSnow
Here is a list of the Windows 10's Compatibility Mode options listed in the Application Compatibility Toolkit. Would expect many of these to work, but have to verify.
Each version of Windows and bit depth (64-bit vs 32-bit) can have different compatibility modes available.
Code: Select all
Compatibility available in Windows 10
32-bit Compatibility Modes (90)
16BitColor
256Color
640X480
8And16BitAggregateBlts
8And16BitDXMaxWinMode
8And16BitGDIRedraw
8And16BitTimedPriSync
ApplicationMonitor
AppRecorder
Arm64Wow
DetectorsVista
DetectorsWin7
DetectorsWin8
DetectorsXP
Disable8And16BitD3D
Disable8And16BitModes
DisableCicero
DisableFadeAnimations
DisableNXHideUI
DisableNXShowUI
DisableThemeMenus
DisableThemes
DisableUserCallbackException
DW
DWM8And16BitMitigation
DXMaximizedWindowedMode
ElevateCreateProcess
EmulateSorting
EmulateSortingServer2008
EmulateSortingVista
EmulateSortingWindows61
EnableNXShowUI
FaultTolerantHeap
FDR
FixDisplayChangeRefreshRate
FontMigration
ForceDxSetupSuccess
HandleRegExpandSzRegistryKeys
HighDpiAware
IgnoreAdobeKMPrintDriverMessageBox
IgnoreFreeLibrary
Installer
International
iTunesAutoplay
Layer_Force640x480x8
Layer_ForceDirectDrawEmulation
Layer_Win95VersionLie
LoadLibraryRedirect
MsiAuto
NoDTToDITMouseBatch
NT4SP5
NullEnvironment
ProfilesSetup
RedirectCHHlocaletoCHT
RunAsAdmin
RunAsHighest
RunAsHighest_GW
RunAsInvoker
VerifyVersionInfoLiteLayer
VirtualizeDeleteFileLayer
VistaRTM
VistaRTM_GW
VistaSetup
VistaSP1
VistaSP1VersionLie
VistaSP2
VistaSP2VersionLie
Win2000
Win2000Sp2
Win2000Sp3
Win7RTM
Win7RTMVersionLie
Win81RTMVersionLie
Win8RTM
Win8RTMVersionLie
Win95
Win98
Windows8RC
WinSrv03
WinSrv03Sp1
WinSrv08R2RTM
WinSrv08SP1
WinXP
WinXPSp1
WinXPSp2
WinXPSp2_GW
WinXPSP2VersionLie
WinXPSp3
WinXPSP3VersionLie
WRPMitigation
64-bit Compatibility Modes (36)
ApplicationMonitor
DetectorsVista
DetectorsWin7
DetectorsWin8
DisableUserCallbackException
DW
EmulateSortingServer2008
EmulateSortingVista
EmulateSortingWindows61
FaultTolerantHeap
FontMigration
HighDpiAware
IgnoreFreeLibrary
Installer
LoadLibraryRedirect
MsiAuto
NoDTToDITMouseBatch
RunAsAdmin
RunAsHighest
RunAsInvoker
VerifyVersionInfoLiteLayer
VirtualizeDeleteFileLayer
VistaRTM
VistaSP1
VistaSP1VersionLie
VistaSP2
VistaSP2VersionLie
Win7RTM
Win7RTMVersionLie
Win81RTMVersionLie
Win8RTM
Win8RTMVersionLie
Windows8RC
WinSrv08R2RTM
WinSrv08SP1
WRPMitigation
32-bit Compatibility Fixes (411)
Compatibility Fixes
8And16BitTimedPriSync
AccelGdipFlush
AdditiveRunAsHighest
AddProcessParametersFlags
AddRestrictedSidInCoInitializeSecurity
AddWritePermissionsToDeviceFiles
AliasDXDC
AllocDebugInfoForCritSections
AllowDesktopSetProp
AllowMaximizedWindowGamma
AlwaysActiveMenus
APILogger
AspNetRegiis11
BIOSRead
BlockRunAsInteractiveUser
ChangeAuthenticationLevel
ChangeFolderPathToXPStyle
ClearLastErrorStatusonIntializeCriticalSection
CopyHKCUSettingsFromOtherUsers
CorrectACMArgs
CorrectACMStreamOpen
CorrectActiveMoviePath
CorrectBitmapHeader
CorrectCreateBrushIndirectHatch
CorrectCreateEventName
CorrectCreateIcon
CorrectCreateSurface
CorrectDayName
CorrectFarEastFont
CorrectFilePathInSetDlgItemText
CorrectFilePaths
CorrectFilePathsUninstall
CorrectInactiveBorder
CorrectOpenFileExclusive
CorrectShellExecuteHWND
CorrectShortDateFormat
CorrectSoundDeviceId
CorrectVerInstallFile
CreateDummyProcess
CreateWindowConstrainSize
CUASAppFix
CustomNCRender
DecorateConnectionString
DelayAppDllMain
DelayApplyFlag
DelayDllInit
DelayShowGroup
DelayWin95VersionLie
DelayWinMMCallback
DeleteAndCopy
DeleteFileToStopDriverAndDelete
DeleteSpecifiedFiles
DeprecatedServiceShim
DeRandomizeExeName
DirectPlayEnumOrder
DirectXTrimTextureFormats
DirectXVersionLie
DisableAdvancedRPCrangeCheck
DisableAdvanceRPCClientHardening
DisableAnimation
DisableBoostThread
DisableExceptionChainValidation
DisableFadeAnimations
DisableFilterKeys
DisableFocusTracking
DisableKeyboardAutoInvocation
DisableKeyboardCues
DisableMaybeNULLSizeisConsistencycheck
DisableNDRIIDConsistencyCheck
DisableNewWMPAINTDispatchInOLE
DisableNX
DisableNXPageProtection
DisableScreenSaver
DisableStickyKeys
DisableSWCursorOnMoveSize
DisableThemeMenus
DisableThemes
DisableW2KOwnerDrawButtonStates
DisableWindowArrangement
DisableWindowsDefender
DisallowCOMBindingNotifications
DPIUnaware
DuplicateHandleFix
DXGICompat
DXMaximizedWindowedMode
DXPrimaryClipping
DXPrimaryEmulation
EarlyMouseDelegation
ElevateCreateProcess
EmptyClipboardtoSet
EmulateBitmapStride
EmulateCDFS
EmulateClipboardDIBFormat
EmulateCreateFileMapping
EmulateCreateProcess
EmulateCursor
EmulateDeleteObject
EmulateDirectDrawSync
EmulateDrawText
EmulateEnvironmentBlock
EmulateFindHandles
EmulateGetCommandLine
EmulateGetDeviceCaps
EmulateGetDiskFreeSpace
EmulateGetProfileString
EmulateGetStdHandle
EmulateGetStringType
EmulateGetUIEffects
EmulateHeap
EmulateIME
EmulateJoystick
EmulateLZHandles
EmulateMissingEXE
EmulateOldPathIsUNC
EmulatePlaySound
EmulatePrinter
EmulateSHGetFileInfo
EmulateSlowCPU
EmulateSorting
EmulateSortingServer2008
EmulateSortingVista
EmulateSortingWindows61
EmulateTextColor
EmulateToolHelp32
EmulateUSER
EmulateVerQueryValue
EmulateWriteFile
EnableAppConfig
EnableDEP
EnableLegacyExceptionHandlinginOLE
EnableLegacyExceptionHandlingInRPC
EnableLegacyLoadTypeLibForRelativePaths
EnableLegacyNTFSFlagsForDocfileOpens
EnableRestarts
EnlargeGetObjectBufferSize
EnterUninitializedCriticalSection
ExtraAddRefDesktopFolder
ExtractAssociatedIcon
FailCloseProfileUserMapping
FailGetStdHandle
FailObsoleteShellAPIs
FailOpenFile
FailRemoveDirectory
FakeLunaTheme
FakeThemeMetrics
FaultTolerantHeap
FeedbackReport
FileVersionInfoLie
FilterNetworkResources
FixDisplayChangeRefreshRate
FixSectionProtection
FixServiceStartupCircularDependency
FixSubclassCallingConvention
FlushFile
FontMigration
Force640x480
Force640x480x16
Force640x480x8
Force8BitColor
ForceAdminAccess
ForceAnsiGetDisplayNameOf
ForceAnsiWindowProc
ForceAppendMenuSuccess
ForceApplicationFocus
ForceAVIWindow
ForceCDStop
ForceCoInitialize
ForceDefaultSystemPaletteEntries
ForceDirectDrawEmulation
ForceDirectDrawWait
ForceDisplayMode
ForceDXSetupSuccess
ForceInvalidateOnClose
ForceInvalidateOnClose2
ForceKeepFocus
ForceKeyWOW6464Key
ForceMessageBoxFocus
ForceSeparateVDM
ForceShellLinkResolveNoUI
ForceSimpleWindow
ForceTemporaryModeChange
ForceWorkingDirectoryToEXEPath
FUSBadApplicationType1
FUSBadApplicationType2
FUSBadApplicationType3
FUSBadApplicationType4
GenericInstaller
GetDiskFreeSpace2GB
GetDriveTypeWHook
GetShortPathNameNT4
GetTopWindowToShellWnd
GetVolumeInformationLie
GiveupForeground
GlobalMemoryStatus2GB
GlobalMemoryStatusLie
GrabMatchingInformation
HandleAPIExceptions
HandleBadPtr
HandleDBCSUserName
HandleDBCSUserName2
HandleEmptyAccessCheck
HandleIELaunch
HandleMarkedContentNotIndexed
HandleRegExpandSzRegistryKeys
HandleWvsprintfExceptions
HardwareAudioMixer
HeapClearAllocation
HeapDelayLocalFree
HeapForceGrowable
HeapIgnoreMoveable
HeapLookasideFree
HeapPadAllocation
HeapValidateFrees
HideCursor
HideDisplayModes
HideTaskBar
HighDpiAware
IEUnHarden
IgnoreAltTab
IgnoreChromeSandbox
IgnoreCoCreateInstance
IgnoreCRTExit
IgnoreDebugOutput
IgnoreDirectoryJunction
IgnoreException
IgnoreFloatingPointRoundingControl
IgnoreFontQuality
IgnoreFreeConsole
IgnoreFreeLibrary
IgnoreHungAppPaint
IgnoreLoadLibrary
IgnoreMCISTOP
IgnoreMessageBox
IgnoreMSOXMLMF
IgnoreNoModeChange
IgnoreOemToChar
IgnoreOleUninitialize
IgnoreScheduler
IgnoreSetROP2
IgnoreSysColChanges
IgnoreTAPIDisconnect
IgnoreVBOverflow
IgnoreWM_CHARRepeatCount
IgnoreZeroMoveWindow
InjectDll
InstallComponent
InstallFonts
InstallShieldInstaller
InternetSetFeatureEnabled
KeepWindowOnMonitor
LanguageNeutralGetFileVersionInfo
LazyReleaseDC
LimitFindFile
LoadComctl32Version5
LoadLibraryCWD
LoadLibraryRedirectFlag
LocalMappedObject
LowerThreadPriority
LUA_RegOpenKey_OnlyAsk_KeyRead
MakeShortcutRunAs
ManageLinks
MapMemoryB0000
MirrorDriverDrawCursor
MirrorDriverWithComposition
MoveIniToRegistry
MoveToCopyFileShim
MoveWinInitRenameToReg
NoDTToDITMouseBatch
NoGdiBatching
NoGDIHWAcceleration
NoGhost
NoHardeningLoadResource
NonElevatedIDriver
NoPaddedBorder
NoShadow
NoSignatureCheck
NoTimerCoalescing
NoVirtualization
NoVirtWndRects
NullEnvironment
NullHwndInMessageBox
Ole32ValidatePointers
OpenDirectoryAcl
OpenGLEmfAware
OverrideShellAppCompatFlags
PaletteRestore
PopulateDefaultHKCUSettings
PreInitApplication
PreInstallDriver
PreventMouseInPointer
PrinterIsolationAware
ProcessPerfData
ProfilesEnvStrings
ProfilesGetFolderPath
ProfilesRegQueryValueEx
PromoteDAM
PromotePointer
PropagateProcessHistory
ProtectedAdminCheck
RecopyExeFromCD
RedirectBDE
RedirectCHHlocaletoCHT
RedirectCRTTempFile
RedirectDBCSTempPath
RedirectDefaultAudioToCommunications
RedirectEXE
RedirectHKCUKeys
RedirectMP3Codec
RedirectShortCut
RedirectWindowsDirToSystem32
RegistryReflector
RelaunchElevated
RemoveBroadcastPostMessage
RemoveDDEFlagFromShellExecuteEx
RemoveInvalidW2KWindowStyles
RemoveIpFromMsInfoCommandLine
RemoveNoBufferingFlagFromCreateFile
RemoveOverlappedFlagFromCreateFile
RemoveReadOnlyAttribute
ReorderWaveForCommunications
RepairStringVersionResources
RestoreSystemCursors
RetryOpenSCManagerWithReadAccess
RetryOpenServiceWithReadAccess
RunAsAdmin
RunAsHighest
RunAsInvoker
ScreenCaptureBinary
SearchPathInAppPaths
SessionShim
SetEnvironmentVariable
SetProtocolHandler
SetupCommitFileQueueIgnoreWow
ShellExecuteNoZone
ShellExecuteXP
ShimViaEAT
ShowWindowIE
Shrinker
SingleProcAffinity
SkipDLLRegister
SpecificInstaller
SpecificNonInstaller
StackSwap
StrictLLHook
SyncSystemAndSystem32
SystemMetricsLie
TerminateExe
TrimDisplayDeviceNames
TrimVersionInfo
UIPIEnableCustomMsgs
UIPIEnableStandardMsgs
UnMirrorImageList
UseHighResolutionMouseWheel
UseIntegratedGraphics
UseLegacyMouseWheelRouting
UseLowResolutionMouseWheel
UserDisableForwarderPatch
UseSlowMouseWheelScrolling
UseWARPRendering
VirtualizeDeleteFile
VirtualizeDesktopPainting
VirtualizeHKCRLite
VirtualizeRegisterTypeLib
VirtualRegistry
VistaRTMVersionLie
VistaSP1VersionLie
VistaSP2VersionLie
WaitAfterCreateProcess
WaveOutIgnoreBadFormat
WaveOutUsePreferredDevice
WerDisableReportException
Win2000SP1VersionLie
Win2000SP2VersionLie
Win2000SP3VersionLie
Win2000VersionLie
Win2k3RTMVersionLie
Win2k3SP1VersionLie
Win7RTMVersionLie
Win81RTMVersionLie
Win8RTMVersionLie
Win95VersionLie
Win98VersionLie
WinExecRaceConditionFix
WinG32SysToSys32
WinNT4SP5VersionLie
WinXPSP1VersionLie
WinXPSP2VersionLie
WinXPSP3VersionLie
WinXPVersionLie
WOWCF_NOWAITFORINPUTIDLE
WOWCF_USER_DDENOSYNC
WOWCF2_DELAYTIMEGETTIME
WOWCF2_FIXLUNATRAYRECT
WOWCF2_HACKPROFILECALL
WOWCF2_HACKWINFLAGS
WOWCF2_SETFOREGROUND
WOWCF2_SYNCSYSFILE
WOWCF2_USEMINIMALENVIRONMENT
WOWCFEX_DISPMODE256
WOWCFEX_DIVIDEOVERFLOWPATCH
WOWCFEX_EATDEVMODEMSG
WOWCFEX_FORCEINCDPMI
WOWCFEX_PLATFORMVERSIONLIE
WOWCFEX_USEWINHELP32
WOWCFEX_WIN31VERSIONLIE
WOWCFEX_ZEROINITMEMORY
WRPDllRegister
WRPMitigation
WRPRegDeleteKey
XPAfxIsValidAddress
XPFileDialog
64-bit Compatibility Fixes (134)
8And16BitTimedPriSync
AccelGdipFlush
AdditiveRunAsHighest
AddProcessParametersFlags
AddRestrictedSidInCoInitializeSecurity
AllocDebugInfoForCritSections
AllowMaximizedWindowGamma
AlwaysActiveMenus
CopyHKCUSettingsFromOtherUsers
CorrectFilePaths
CorrectShellExecuteHWND
CreateDummyProcess
CreateWindowConstrainSize
DeleteFileToStopDriverAndDelete
DeprecatedServiceShim
DisableAdvancedRPCrangeCheck
DisableAdvanceRPCClientHardening
DisableAnimation
DisableExceptionChainValidation
DisableFocusTracking
DisableKeyboardAutoInvocation
DisableKeyboardCues
DisableMaybeNULLSizeisConsistencycheck
DisableNDRIIDConsistencyCheck
DisableNewWMPAINTDispatchInOLE
DisableSWCursorOnMoveSize
DisableWindowArrangement
DisableWindowsDefender
DisallowCOMBindingNotifications
DPIUnaware
DXGICompat
EarlyMouseDelegation
EmulateCursor
EmulateSortingServer2008
EmulateSortingVista
EmulateSortingWindows61
EnableAppConfig
EnableDEP
EnableLegacyExceptionHandlinginOLE
EnableLegacyExceptionHandlingInRPC
EnableLegacyLoadTypeLibForRelativePaths
EnableLegacyNTFSFlagsForDocfileOpens
FaultTolerantHeap
FileVersionInfoLie
FontMigration
ForceKeyWOW6464Key
GenericInstaller
GetDiskFreeSpace2GB
GetShortPathNameNT4
GetTopWindowToShellWnd
GiveupForeground
HandleIELaunch
HardwareAudioMixer
HighDpiAware
IgnoreFreeConsole
IgnoreFreeLibrary
InstallComponent
InstallFonts
LoadLibraryRedirectFlag
MakeShortcutRunAs
MirrorDriverDrawCursor
NoDTToDITMouseBatch
NoGdiBatching
NoGDIHWAcceleration
NoGhost
NoPaddedBorder
NoShadow
NoSignatureCheck
NoTimerCoalescing
NoVirtualization
NoVirtWndRects
Ole32ValidatePointers
OpenGLEmfAware
OverrideShellAppCompatFlags
PreventMouseInPointer
PrinterIsolationAware
PromoteDAM
PromotePointer
RedirectDefaultAudioToCommunications
RedirectHKCUKeys
RedirectShortCut
RegistryReflector
RelaunchElevated
ReorderWaveForCommunications
RunAsAdmin
RunAsHighest
RunAsInvoker
ScreenCaptureBinary
SetEnvironmentVariable
SetProtocolHandler
SpecificInstaller
SpecificNonInstaller
StrictLLHook
SystemMetricsLie
TerminateExe
UseHighResolutionMouseWheel
UseIntegratedGraphics
UseLegacyMouseWheelRouting
UseLowResolutionMouseWheel
UserDisableForwarderPatch
UseSlowMouseWheelScrolling
UseWARPRendering
VirtualizeHKCRLite
VirtualRegistry
VistaRTMVersionLie
VistaSP1VersionLie
VistaSP2VersionLie
Win2000SP1VersionLie
Win2000SP2VersionLie
Win2000SP3VersionLie
Win2000VersionLie
Win2k3SP1VersionLie
Win7RTMVersionLie
Win81RTMVersionLie
Win8RTMVersionLie
WOWCF_NOWAITFORINPUTIDLE
WOWCF_USER_DDENOSYNC
WOWCF2_DELAYTIMEGETTIME
WOWCF2_FIXLUNATRAYRECT
WOWCF2_HACKPROFILECALL
WOWCF2_HACKWINFLAGS
WOWCF2_SETFOREGROUND
WOWCF2_SYNCSYSFILE
WOWCF2_USEMINIMALENVIRONMENT
WOWCFEX_DISPMODE256
WOWCFEX_DIVIDEOVERFLOWPATCH
WOWCFEX_EATDEVMODEMSG
WOWCFEX_FORCEINCDPMI
WOWCFEX_PLATFORMVERSIONLIE
WOWCFEX_USEWINHELP32
WOWCFEX_WIN31VERSIONLIE
WOWCFEX_ZEROINITMEMORY
WRPMitigation
WRPRegDeleteKey
Edit: Added text lists rather than images
Last edited by DigitalSnow (30 Mar 2016 15:47)
----------------------------
#8 30 Mar 2016 15:19
npocmaka
DigitalSnow wrote:
Here are all the Windows 10's Compatibility Mode options listed in the Application Compatibility Toolkit. Would expect many of these to work, but have to verify.
Each version of Windows can have different compatibility modes available.
Cool.Where did you get these from?
----------------------------
#9 30 Mar 2016 15:24
DigitalSnow
From the Compatibility Administrator tool, part of the Application Compatibility Toolkit (provided by Microsoft).npocmaka wrote:
Cool.Where did you get these from?DigitalSnow wrote:
Here are all the Windows 10's Compatibility Mode options listed in the Application Compatibility Toolkit. Would expect many of these to work, but have to verify.
Each version of Windows can have different compatibility modes available.
----------------------------
#10 14 Mar 2018 14:32
RaceQ
Compatibility modes tab cannot be set for cmd.exe but there are some settings in boot.ini I assume change this.
On Win XP SP2 when I start an ordinary cmd.exe there is no __COMPAT_LAYER variable set
On Win XP SP3 when I start an ordinary cmd.exe
__COMPAT_LAYER=EnableNXShowUI
so does that mean this was the first version that used it? And is that default value?