Invoke-Command -ComputerName fqdn {Install-WindowsFeature SNMP-Service -IncludeManagementTools}
Additional notes
- Use a fqdn and not an IP for the -ComputerName. IP will not work unless you’ve modified the Trustedhosts list.
- PowerShell needs to be opened with elevated rights if you want to run the Install-WindowsFeature on the local server.