"Elvis" <ree...@rocketmail.com> wrote in message
news:3c708aa5$1...@newsa.ev1.net...
<tip type="friendly">
If you need to post to more than one forum, please crosspost instead of multiposting. It
saves extra responses, threads useful answers together so that everyone can see them, and
makes certain that you don't have to jump around between newsgroups trying to decide
whether you got an answer...
</tip>
Use the snetcfg.exe in the Driver Development Kit (http://www.microsoft.com/ddk/). You
can download the Windows 2000 DDK at no charge from here:
http://www.microsoft.com/ddk/W2kDDK.asp
Command to install "File and Printer Sharing":
snetcfg -v -s n
--
torgeir
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
> Use the snetcfg.exe in the Driver Development Kit (http://www.microsoft.com/ddk/). You
> can download the Windows 2000 DDK at no charge from here:
> http://www.microsoft.com/ddk/W2kDDK.asp
>
> Command to install "File and Printer Sharing":
>
> snetcfg -v -s n
Ehh, err! That was the command for listing installed components.
Here is the correct command:
snetcfg -c s -i MS_Server
--
torgeir
I don't mind maintaining a "copy/paste" FAQ. :)
"Torgeir Bakken" <Torgeir.B...@hydro.com> wrote in message
news:3C71208C...@hydro.com...
> I am a bit confused (not really a developer)in doing as you mentioned.
> I downloaded the W2KDDK but I really do not have the tools (compiler) to
> work with SNETCFG.EXE. Basically, are you saying once the SNETCFG is
> compiled to an EXE run the command line you provided (snetcfg -v -s n)
> and FILE and PRINTER SHARING SERVICE is "magically" installed? Thanks
> again.
Yes, that is right. Snetcfg is a sample tool in the DDK
(...\src\network\config\netcfg) that must be compiled into an exe from the
source. It can list, install and deinstall most network components. Here is the
help output from it:
C:\>snetcfg /?
snetcfg [-v] [-l <full-path-to-component-INF>] -c <p|s|c> -i <comp-id>
where,
-l provides the location of INF
-c provides the class of the component to be installed
p == Protocol, s == Service, c == Client
-i provides the component ID
The arguments must be passed in the order shown.
Examples:
snetcfg -l c:\oemdir\foo.inf -c p -i foo
...installs protocol 'foo' using c:\oemdir\foo.inf
snetcfg -c s -i MS_Server
...installs service 'MS_Server'
OR
snetcfg [-v] -q <comp-id>
Example:
snetcfg -q MS_IPX
...displays if component 'MS_IPX' is installed
OR
snetcfg [-v] -u <comp-id>
Example:
snetcfg -u MS_IPX
...uninstalls component 'MS_IPX'
OR
snetcfg [-v] -s <a|n>
where,
-s provides the type of components to show
a == adapters, n == net components
Examples:
snetcfg -s n
...shows all installed net components
OR
snetcfg [-v] -b <comp-id>
Examples:
snetcfg -b ms_tcpip
...shows binding paths containing 'ms_tcpip'
General Notes:
-v turns on the verbose mode
-? Displays this help
--
torgeir