Open in the explorer

Do not allow Windows Messenger to be run

Ne pas autoriser l’exécution de Windows Messenger

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Windows Messenger FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Windows Messenger
Supported on
At least Windows Server 2003 operating systems or Windows XP Professional FR: Au minimum Windows Server 2003 ou Windows XP Professionnel
ADMX file
WindowsMessenger.admx
Internal name
WindowsMessenger/WinMSG_NoWindowsMsg_Comp

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.

French text from Windows 11 26H2

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
StateValue written
EnabledREG_DWORD = 1
DisabledREG_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 DWord

Disable

# 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 DWord

Revert 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

Availability