Solved

Network components install.

Posted on 1998-02-25
2
267 Views
Last Modified: 2013-12-28
How can I install network components from a batch file?
0
Comment
Question by:Alfino
2 Comments
 
LVL 8

Accepted Solution

by:
MaDdUCK earned 610 total points
ID: 1790933
When you install Network Components using Control Panel, the Ncpa.cpl applet configures setup.exe to call Ncpashel.inf with the appropriate parameters. If you know the INF file to use and the OPTION, you can create a batch file to perform the task. You will, unfortuneatly, have to make any adjustments to Binding manually. Here is the syntax: (on one line)

SETUP.EXE /f /i%systemroot%\system32\ncpashel.inf /T NTN_InstallMode = Install
  /T NTN_Origination = install /T NTN_Infname = <PATH>\OEMSETUP.INF
  /T NTN_SRCPATH = <CD-ROM>:\I386 /T NTN_Infoption = OPTION

Where:

 Parameter             D e s c r i p t i o n  
 /f   Turns off blue background.  
 /T NTN_InstallMode =    Install, Remove, Update, Configure or Bind  
 /T NTN_Origination =    Install  
 /T NTN_Infname =    Path/Name of the INF file.  
 /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].  


To install Microsoft TCP/IP Printing with a batch file: (The Setup command must be on one line.)

cd %systemroot%
setup /f /i%systemroot%\system32\ncpashel.inf /T NTN_InstallMode = Install
  /T NTN_Origination = install /T NTN_Infname = .\OEMNSVTP.INF
  /T NTN_SRCPATH = <CD-ROM>:\I386 /T NTN_InfOption = TCPPRINT
EXIT

Oemnsvtp.inf is the INF file that directs installation of the Microsoft TCP/IP Printing component. It contains the following section:

[Options]
 TCPPRINT
0
 

Author Comment

by:Alfino
ID: 1790934
Thank you, exactly what I needed.
0

Featured Post

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question