Add "Run in Separate Memory Space" check box to Run dialog box
Ajouter la case à cocher « Exécuter dans une zone mémoire différente » dans la boîte de dialogue Exécuter
Explanation
Lets users run a 16-bit program in a dedicated (not shared) Virtual DOS Machine (VDM) process.
All DOS and 16-bit programs run on Windows 2000 Professional and Windows XP Professional in the Windows Virtual DOS Machine program. VDM simulates a 16-bit environment, complete with the DLLs required by 16-bit programs. By default, all 16-bit programs run as threads in a single, shared VDM process. As such, they share the memory space allocated to the VDM process and cannot run simultaneously.
Enabling this setting adds a check box to the Run dialog box, giving users the option of running a 16-bit program in its own dedicated NTVDM process. The additional check box is enabled only when a user enters a 16-bit program in the Run dialog box.
Autorise les utilisateurs à exécuter un programme 16 bits dans un processus VDM (Virtual DOS Machine) dédié (non partagé).
Dans Windows 2000 Professionnel et Windows XP Professionnel, tous les programmes DOS et 16 bits s’exécutent dans le programme machine DOS virtuelle. VDM émule un environnement 16 bit, en utilisant les DLL nécessaires aux programmes 16 bits. Par défaut, tous les programmes 16 bits s’exécutent en tant que threads dans un processus VDM partagé unique. En tant que tels, ils partagent l’espace mémoire alloué au processus VDM et ne peuvent pas s’exécuter simultanément.
Si vous activez ce paramètre, une case à cocher est ajoutée à la boîte de dialogue Exécuter, offrant aux utilisateurs l’option d’exécuter un programme 16 bits dans son propre processus NTVDM dédié. La case à cocher supplémentaire n’est activée que si les utilisateurs entrent un nom de programme 16 bits dans la boîte de dialogue Exécuter.
Registry
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer- Value name
MemCheckBoxInRunDlg
| State | Value written |
|---|---|
| Enabled | not defined in the ADMX |
| Disabled | not defined in the ADMX |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
The ADMX does not specify the value written when enabled; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled). The commands below use 1/0 as an assumption.
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: StartMenu/MemCheckBoxInRunDlg
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'MemCheckBoxInRunDlg' -Value 1 -Type DWord # assumed value (not defined in the ADMX)Disable
# Disable: StartMenu/MemCheckBoxInRunDlg
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'MemCheckBoxInRunDlg' -Value 0 -Type DWord # assumed value (not defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": StartMenu/MemCheckBoxInRunDlg
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
Remove-ItemProperty -Path $k -Name 'MemCheckBoxInRunDlg' -ErrorAction SilentlyContinue