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

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: