SNMP, Remotely!

So I have been building up a bit of a Windows environment in the lab (a DC, two clients and a sql server so far) and I wanted to push out SNMP to the environment because thats how I monitor things in the lab. Unfortunately I have seen absolutely no reliable way to do so with Group Policy, so in comes the glory that has become PowerShell lately. First we need to figure out which servers we are going to target, so lets whip up servers.txt with the shortnames and make a note of its path. Once we have that list we whip up a quick little loop that works on each line of the servers.txt file to make things happen.

Of course if you only need to do a single server for a one-off reason you could just run Invoke-Command manually but where is the fun in that when we can push to every single system in a hurry AND kick off the gpupdate which will pull down the settings to enable SNMP across the lab.

Leave a Comment