|
Junior Member
Join Date: Nov 2005
Posts: 1
|
heres a batch file i wrote
note.. SourcePath refers to c:\ assuming you've copied the i386 directory from the CD to c:\i386
kudos to Joe Wu and others who gave me some tips.
REM SNMP install script - pARODY 02-11-05
REM parody [@] gutterbunny.com
(
echo Windows Registry Editor Version 5.00
echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SNMP\Parameters\RFC1156Agent]
echo "sysContact"="Your Name"
echo "sysLocation"="Department or Location"
echo "sysServices"=dword:0000004d
echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SNMP\Parameters\ValidCommunities]
echo "public"=dword:00000004
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup]
echo "SourcePath"="C:\"
) > c:\setup.reg
regedit /s /q c:\setup.reg
(
echo ;SetupMgrTag
echo [NetOptionalComponents]
echo SNMP=1
echo [SNMP]
echo Any_Host=YES
) > c:\snmp.txt
sysocmgr /i:%windir%\inf\sysoc.inf /u:c:\snmp.txt
|