Enable SNMP in Windows 10 version 1809 and newer
For internet-enabled or proxy enabled machines if the default installation method fails with the error 0x800f0954 then try the below steps
In gpedit.msc
Computer Configuration > Administrative Templates > System
Enable — — Specify settings for optional component installation and component repair
Select — Download and repair content and optional features directly from Windows Updates instead of Windows Server Updates Services (WSUS)
In PowerShell Administrative mode: run gpupdate /force
Once the update is successful, use one of the two commands to install the feature
Add-WindowsCapability -Online -Name "SNMP.Client~~~~0.0.1.0"
or
DISM /online /add-capability /capabilityname:SNMP.Client~~~~0.0.1.0
To disable snmp service:
Remove-WindowsCapability -Online -Name "SNMP.Client~~~~0.0.1.0"
For machines with no internet access, SNMP can be installed using FoD ISO image. FOD media can be downloaded from VLSC (Volume License Servicing Center)