Specify communities: registry value SNMP_Communities (ValidCommunities)ComputerHKLM\Software\Policies\SNMP\Parameters\ValidCommunities

Policy ID
SNMP_Communities
Scope
Computer Configuration
Supported on
At least Windows Server 2003 operating systems or Windows XP Professional
Source
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
Category
Network › SNMP

Registry

(list values)

REG_SZComputer
Enabled value
Depends on the option value
Element
Communities
Value type
REG_SZ
Value name prefix
-
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\SNMP\Parameters\ValidCommunities]

; Add one value per list entry, increasing the number
"1"="<enter value>"
"2"="<enter value>"
CMD
:: Add one value per list entry, increasing the number

reg add "HKLM\Software\Policies\SNMP\Parameters\ValidCommunities" /v "1" /t REG_SZ /d "<enter value>" /f
reg add "HKLM\Software\Policies\SNMP\Parameters\ValidCommunities" /v "2" /t REG_SZ /d "<enter value>" /f
PowerShell
# Add one value per list entry, increasing the number

New-Item -Path 'HKLM:\Software\Policies\SNMP\Parameters\ValidCommunities' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\SNMP\Parameters\ValidCommunities' -Name '1' -PropertyType String -Value '<enter value>' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\SNMP\Parameters\ValidCommunities' -Name '2' -PropertyType String -Value '<enter value>' -Force | Out-Null