|
02-08-2013, 09:23 AM | Topic Starter | |
Got swag?
Join Date: Aug 2003
Location: Madison, MS
Casino cash: $10008287
|
Any PowerShell gurus out there?
I've got over 400 windows 2008 R2 servers and I need to install SNMP services and then set the community string and host for it to accept packets from.
Now a few of these servers already have SNMP services installed.. I've put together a PS script to check if SNMP services (a windows feature essentially) is installed -- if it's not, install it - if it is, skip installation and go to deleting the existing strings and creating the new ones. I've got two local servers here that I'm testing on (both do not have SNMP services installed) and I'm getting the script to run but it fails (says it fails but it actually does install the SNMP services) and doesn't set the community strings UNLESS you run the script a second time. After running the script a second time, all is well..... I've been looking at this for far too long and need another pair of eyes. And all execution policies are set to RemoteSigned. Quote:
|
|
Posts: 11,847
|
Thread Tools | |
Display Modes | |
|
|