Created
February 5, 2022 08:14
-
-
Save froop/581bfeec49ec0fa07984b13be37d6886 to your computer and use it in GitHub Desktop.
[Windows] Install SNMP Service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install-WindowsFeature SNMP-Service -IncludeAllSubFeature -IncludeManagementTools | |
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\SNMP\Parameters\ValidCommunities" -Name "public" -Value 4 -type DWord | |
Remove-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Services\SNMP\Parameters\PermittedManagers" | |
#Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\SNMP\Parameters\PermittedManagers" -Name "1" -Value "localhost" -type String | |
#Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\SNMP\Parameters\PermittedManagers" -Name "2" -Value "172.30.3.10" -type String | |
Restart-Service -Name SNMP | |
New-NetFirewallRule -DisplayName "SNMP Service" -Direction Inbound -Protocol UDP -LocalPort 161 -Action Allow |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment