Solved

Network components install.

Posted on 1998-02-25
2
277 Views
Last Modified: 2013-12-28
How can I install network components from a batch file?
0
Comment
Question by:Alfino
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

Question has a verified solution.

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

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
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…
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…

730 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