Open in the explorer

Specify permitted managers

Spécifier les gestionnaires autorisés

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Network › SNMP FR: Configuration ordinateur › Stratégies › Modèles d'administration › Réseau › SNMP
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
Snmp.admx
Internal name
Snmp/SNMP_PermittedManagers

Explanation

This policy setting determines the permitted list of hosts that can submit a query to the Simple Network Management (SNMP) agent running on the client computer.

Simple Network Management Protocol is a protocol designed to give a user the capability to remotely manage a computer network by polling and setting terminal values and monitoring network events.

The manager is located on the host computer on the network. The manager's role is to poll the agents for certain requested information.

If you enable this policy setting, the SNMP agent only accepts requests from the list of permitted managers that you configure using this setting.

If you disable or do not configure this policy setting, SNMP service takes the permitted managers configured on the local computer instead.

Best practice: For security purposes, it is recommended to restrict the HKLM\SOFTWARE\Policies\SNMP\Parameters\PermittedManagers key to allow only the local admin group full control.

Note: This policy setting has no effect if the SNMP agent is not installed on the client computer.

Also, see the other two SNMP policy settings: "Specify trap configuration" and "Specify Community Name".

French text from Windows 11 26H2

Ce paramètre de stratégie détermine la liste des hôtes autorisés qui peuvent envoyer une demande à l’agent SNMP (Simple Network Management) s’exécutant sur l’ordinateur client.

Le protocole SNMP est conçu pour permettre à un utilisateur de gérer à distance un réseau d’ordinateurs, en interrogeant et en définissant les valeurs de terminaux, et en analysant les événements réseau.

Le gestionnaire est situé sur l’ordinateur hôte du réseau. Son rôle consiste à interroger les agents sur certaines informations demandées.

Si vous activez ce paramètre de stratégie, l’agent SNMP n’accepte que les demandes provenant de la liste des gestionnaires autorisés que vous configurez en utilisant ce paramètre.

Si vous désactivez ou ne configurez pas ce paramètre, le service SNMP utilise à la place les gestionnaires autorisés configurés sur l’ordinateur local.

Méthode conseillée : pour des raisons de sécurité, il est recommandé de restreindre la clé HKLM\SOFTWARE\Policies\SNMP\Parameters\PermittedManagers pour donner le contrôle total uniquement au groupe Administrateurs local.

Remarque : ce paramètre de stratégie n’a aucun effet si l’agent SNMP n’est pas installé sur l’ordinateur client.

Consultez également les deux autres paramètres SNMP : « Spécifier la configuration des interruptions » et « Spécifier le nom de la communauté ».

Registry

HKEY_LOCAL_MACHINE\Software\Policies\SNMP\Parameters
Value name
not defined in the ADMX

Enable / disable values: not defined in the ADMX (see the options below).

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: Snmp/SNMP_PermittedManagers
$k = 'HKLM:\Software\Policies\SNMP\Parameters\PermittedManagers'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Permitted managers
# Non-additive list: existing values of the key are cleared first
if (Test-Path -Path $k) { (Get-Item -Path $k).Property | ForEach-Object { Remove-ItemProperty -Path $k -Name ([WildcardPattern]::Escape($_)) -ErrorAction SilentlyContinue } }
$values = @('<value1>', '<value2>')  # Replace the values with your own
$i = 1
foreach ($v in $values) { Set-ItemProperty -Path $k -Name ('' + $i) -Value $v -Type String; $i++ }

Disable

# Disable: Snmp/SNMP_PermittedManagers
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": Snmp/SNMP_PermittedManagers
$k = 'HKLM:\Software\Policies\SNMP\Parameters\PermittedManagers'
Remove-Item -Path $k -Recurse -Force -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Permitted managersGestionnaires autorisésSNMP_PermittedManagersListboxList (table)listSoftware\Policies\SNMP\Parameters\PermittedManagersValues named “” + numberREG_SZ (values under the key)

Availability