How to install network components from batch.
Jerold Schulman
September 6, 1999
1 Min Read
Instead of using the GUI, you can use Setup.exe:
SETUP.EXE /f /i%systemroot%system32cpashel.inf /T NTN_InstallMode = Install /T NTN_Origination = install /T NTN_Infname = OEMSETUP.INF /T NTN_SRCPATH = D:I386 /T NTN_Infoption = OPTION
NOTE: The above command line MUST be a single line.
The parameter meanings:/f = Turns off blue background/T NTN_InstallMode = Install, Remove, Update, Configure or Bind This option is identical to the GUI interface/T NTN_Origination = Install (= NCPA when setup issued by NCPA.CPL)/T NTN_Infname = Name of the INF file name/T NTN_SRCPATH = Path to the distribution files/T NTN_Infoption = Name of the option. To figure out which option has to be installed, open the INF file and search for the section [Options]. You should find the name of the option to setup.
Example: To install TCP/IP Printing from your CD-ROM (D:) drive, the command lines are:
cd %systemroot%setup /f /i%systemroot%system32cpashel.inf /T NTN_InstallMode = Install /T NTN_Origination = install /T NTN_Infname = .OEMNSVTP.INF /T NTN_SRCPATH = D:I386 /T NTN_InfOption = TCPPRINT
NOTE: OEMNSVTP.INF is the INF file for Microsoft TCP/IP Printing. It contains:
[Options] TCPPRINT
NOTE: You must either do the bindings manually, or run Runncpa.exe from the BackOffice Resource Kit.
About the Author
Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.
You May Also Like