Installing SNMP Services on remote servers via powershell

Open notepad, paste the following in notepad without the quotes.
"Get-WindowsFeature -name SNMP* | Add-WindowsFeature -IncludeManagementTools"
 then save as c:\snmpinstall.ps1

From powershell run the following.(without the quotes) Replace servername with the actual server name(s).
For more servers add additional lines as needed.

Invoke-Command -FilePath C:\snmpinstall.ps1 -ComputerName servername
Invoke-Command -FilePath c:\snmpinstall.ps1 -ComputerName servername
Invoke-Command -FilePath c:\snmpinstall.ps1 -ComputerName servername