Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

<<<<< HELP: How can I install File and Printer Sharing using command line? >>>>

11 views
Skip to first unread message

Elvis

unread,
Feb 18, 2002, 12:01:25 AM2/18/02
to

How can I install File and Printer sharing using Command line in Windows 2000
using the netserv.inf file? Please provide exact process. Thank You kindly...please
email me!

Alex Angelopoulos

unread,
Feb 18, 2002, 7:04:48 AM2/18/02
to
It's installed by default; what's the context?

"Elvis" <ree...@rocketmail.com> wrote in message
news:3c708aa5$1...@newsa.ev1.net...

Torgeir Bakken

unread,
Feb 18, 2002, 7:17:37 AM2/18/02
to
Elvis wrote:

<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


Lindley Lee

unread,
Feb 18, 2002, 10:32:51 AM2/18/02
to
Thanks! I needed to install File and Printer Sharing because the images
we created removed the service. It was a decision at the time to remove
the service; however, since so many apps (primarily SMS) uses File and
Printer Sharing Service (RPC) then we needed to automate the install on
over 2000+ machines! Thanks KINDLY...Will try the SNETCFG option!

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Torgeir Bakken

unread,
Feb 18, 2002, 10:41:01 AM2/18/02
to
Torgeir Bakken wrote:

> 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

Alex Angelopoulos

unread,
Feb 18, 2002, 11:21:04 AM2/18/02
to
Another useful link.

I don't mind maintaining a "copy/paste" FAQ. :)


"Torgeir Bakken" <Torgeir.B...@hydro.com> wrote in message
news:3C71208C...@hydro.com...

Torgeir Bakken

unread,
Feb 18, 2002, 6:50:54 PM2/18/02
to
Lindley Lee wrote:

> 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

Lindley Lee

unread,
Feb 20, 2002, 2:53:37 PM2/20/02
to
All I can say is...much much much gratitude TORGEIR! I've tried it
finally on Windows 2000 platform and it works flawlessly! Finally, a
solution to a 2 month problem I've had. Others on the Net had similar
issue so I sent it to them...credit to you. Thanks.
0 new messages