Prevent access to 16-bit applications
Empêcher l’accès aux applications 16 bits
Explanation
Specifies whether to prevent the MS-DOS subsystem (ntvdm.exe) from running on this computer. This setting affects the launching of 16-bit applications in the operating system.
You can use this setting to turn off the MS-DOS subsystem, which will reduce resource usage and prevent users from running 16-bit applications. To run any 16-bit application or any application with 16-bit components, ntvdm.exe must be allowed to run. The MS-DOS subsystem starts when the first 16-bit application is launched. While the MS-DOS subsystem is running, any subsequent 16-bit applications launch faster, but overall resource usage on the system is increased.
If the status is set to Enabled, the MS-DOS subsystem is prevented from running, which then prevents any 16-bit applications from running. In addition, any 32-bit applications with 16-bit installers or other 16-bit components cannot run.
If the status is set to Disabled, the MS-DOS subsystem runs for all users on this computer.
If the status is set to Not Configured, the OS falls back on a local policy set by the registry DWORD value HKLM\System\CurrentControlSet\Control\WOW\DisallowedPolicyDefault. If that value is non-0, this prevents all 16-bit applications from running. If that value is 0, 16-bit applications are allowed to run. If that value is also not present, on Windows 10 and above the OS will launch the 16-bit application support control panel to allow an elevated administrator to make the decision; on windows 7 and downlevel, the OS will allow 16-bit applications to run.
Note: This setting appears in only Computer Configuration.
Empêche ou non l’exécution du sous-système MS-DOS (ntvdm.exe) sur cet ordinateur. Ce paramètre affecte le lancement des applications 16 bits dans le système d’exploitation.
Vous pouvez utiliser ce paramètre pour désactiver le sous-système MS-DOS, ce qui permettra de réduire l’utilisation des ressources et d’empêcher les utilisateurs d’exécuter des applications 16 bits. Pour exécuter toute application 16 bits ou comportant des composants 16 bits, l’exécution de ntvdm.exe doit être autorisée. Le sous-système MS-DOS démarre lorsque la première application 16 bits est lancée. Lors de l’exécution du sous-système MS-DOS, toutes les applications 16 bits suivantes démarrent plus rapidement, mais l’utilisation globale des ressources du système augmente.
Si vous activez ce paramètre, le sous-système MS-DOS ne peut pas être exécuté, ce qui empêche l’exécution de toutes les applications 16 bits. En outre, les applications 32 bits comportant des programmes d’installation 16 bits ou autres composants 16 bits ne peuvent pas être exécutées.
Si vous désactivez ce paramètre, le sous-système MS-DOS s’exécute pour tous les utilisateurs de cet ordinateur.
Si ce paramètre n’est pas configuré, le système d’exploitation utilise la stratégie locale définie par la valeur de Registre DWORD HKLM\System\CurrentControlSet\Control\WOW\DisallowedPolicyDefault. Si cette valeur n’est pas égale à 0, aucune application 16 bits ne peut s’exécuter. Si cette valeur est égale à 0, les applications 16 bits peuvent s’exécuter. Si cette valeur n’est pas spécifiée, sur Windows 10 et les versions ultérieures, le système d’exploitation lance le panneau d’assistance de l’application 16 bits pour permettre à un administrateur aux droits élevés de décider. Sur Windows 7 et les versions de niveau inférieur, le système d’exploitation autorise l’exécution des applications 16 bits.
Remarque : ce paramètre n’apparaît que dans Configuration ordinateur.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\AppCompat- Value name
VDMDisallowed
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Enable
# Enable: AppCompat/AppCompatPrevent16BitMach
$k = 'HKLM:\Software\Policies\Microsoft\Windows\AppCompat'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'VDMDisallowed' -Value 1 -Type DWordDisable
# Disable: AppCompat/AppCompatPrevent16BitMach
$k = 'HKLM:\Software\Policies\Microsoft\Windows\AppCompat'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'VDMDisallowed' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": AppCompat/AppCompatPrevent16BitMach
$k = 'HKLM:\Software\Policies\Microsoft\Windows\AppCompat'
Remove-ItemProperty -Path $k -Name 'VDMDisallowed' -ErrorAction SilentlyContinue