Here are snippets of a script I used to use to set some of this stuff during
server builds.  Most of it is part of our OSD build scripts now but it
should get you in the neighborhood if the other answers didn't.

set-ItemProperty
hklm:\SYSTEM\CurrentControlSet\Services\SNMP\Parameters\RFC1156Agent -Name
sysLocation Vmware
set-ItemProperty
hklm:\SYSTEM\CurrentControlSet\Services\SNMP\Parameters\RFC1156Agent -Name
sysContact "Windows Engineering"
Get-ItemProperty
hklm:\SYSTEM\CurrentControlSet\Services\SNMP\Parameters\RFC1156Agent

get-itemproperty
HKLM:\SYSTEM\CurrentControlSet\Services\SNMP\Parameters\PermittedManagers
Set-ItemProperty
HKLM:\SYSTEM\CurrentControlSet\Services\SNMP\Parameters\PermittedManagers
-Name 1 "LOCALHOST"
Set-ItemProperty
HKLM:\SYSTEM\CurrentControlSet\Services\SNMP\Parameters\PermittedManagers
-Name 2 "OurSIMserverName"

get-itemproperty
HKLM:\SYSTEM\CurrentControlSet\Services\SNMP\Parameters\ValidCommunities
Set-ItemProperty
HKLM:\SYSTEM\CurrentControlSet\Services\SNMP\Parameters\ValidCommunities
-Name server_read_string"4"


Steven Peck
http://www.blkmtn.org



On Fri, Aug 26, 2011 at 12:23 PM, Mike Leone <[email protected]> wrote:

> Hello. We have decided to use a new SNMP community for monitoring. What
> I'd like to do is to not have to remote control every Windows box and
> change the configuration in "Services". Is there any way to set that
> remotely, perhaps with netsh or similar? I want to add "MyCommunity" as
> a trap destination, and add that community under the "Security" for
> authentication traps. Oh, and I want to add a specific host to the list
> of hosts it will accept SNMP packets from. And remove "Public", if it's
> in any of those spots.
>
> Is it possible to do that remotely, or am I looking at lots of remote
> controlling in my week ahead?
>
> Thanks
>
> ~ Finally, powerful endpoint security that ISN'T a resource hog! ~
> ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~
>
> ---
> To manage subscriptions click here:
> http://lyris.sunbelt-software.com/read/my_forums/
> or send an email to [email protected]
> with the body: unsubscribe ntsysadmin
>

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe ntsysadmin

Reply via email to