Win 7
start /w ocsetup SNMP
Win XP
sysocmgr /i:%SystemRoot%\inf\sysoc.inf /u:\\%userDomain%\netlogon\snmp.txt /x /q /r
C:\>type \\%userDomain%\netlogon\snmp.txt
[Components]
netoc = on
[NetOptionalComponents]
SNMP = 1
source:
http://thwack.com/blogs/orion-product-team-blog/archive/2010/11/08/remotely-enable-snmp-on-windows/
http://technet.microsoft.com/en-us/library/cc750391.aspx
netsh firewall set icmpsetting 8
netsh firewall set icmpsetting 8 disable
set servers=servers.txt
for /f "delims=" %%x in (%servers%) do (
psexec \\%%x -s -i -d netsh firewall set icmpsetting 8
)
source http://www.petri.co.il/enable-ping-windows-2008-server.htm