Solved

Network components install.

Posted on 1998-02-25
2
258 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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Suggested Solutions

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

770 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