Do not allow Windows Messenger to be run
Ne pas autoriser l’exécution de Windows Messenger
Explanation
This policy setting allows you to prevent Windows Messenger from running.
If you enable this policy setting, Windows Messenger does not run.
If you disable or do not configure this policy setting, Windows Messenger can be used.
Note: If you enable this policy setting, Remote Assistance also cannot use Windows Messenger.
Note: This policy setting is available under both Computer Configuration and User Configuration. If both are present, the Computer Configuration version of this policy setting takes precedence.
Ce paramètre de stratégie permet d’empêcher l’exécution de Windows Messenger.
Si vous désactivez ce paramètre de stratégie, Windows Messenger ne s’exécute pas.
Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, Windows Messenger peut être utilisé.
Remarque : si vous activez ce paramètre de stratégie, Assistance à distance peut également utiliser Windows Messenger.
Remarque : ce paramètre de stratégie est disponible à la fois sous Configuration ordinateur et Configuration utilisateur. Si les deux sont présents, la version Configuration ordinateur de ce paramètre de stratégie est prioritaire.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Messenger\Client- Value name
PreventRun
| 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: WindowsMessenger/WinMSG_NoWindowsMsg_Comp
$k = 'HKLM:\Software\Policies\Microsoft\Messenger\Client'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'PreventRun' -Value 1 -Type DWordDisable
# Disable: WindowsMessenger/WinMSG_NoWindowsMsg_Comp
$k = 'HKLM:\Software\Policies\Microsoft\Messenger\Client'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'PreventRun' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": WindowsMessenger/WinMSG_NoWindowsMsg_Comp
$k = 'HKLM:\Software\Policies\Microsoft\Messenger\Client'
Remove-ItemProperty -Path $k -Name 'PreventRun' -ErrorAction SilentlyContinue