Anyway to automate enable File/Print Sharing

E

ebe

We have a need to automate a bunch of XP Pro workstations
to enable File/Print Sharing & we don't want to have to
visit each computer. I found registry items that relate to
this, but they do not work unless you go into the
LAN/Properties and [X] File/Print Sharing box. Looking to
enable the admin shares..
 
T

Torgeir Bakken (MVP)

ebe said:
We have a need to automate a bunch of XP Pro workstations
to enable File/Print Sharing & we don't want to have to
visit each computer. I found registry items that relate to
this, but they do not work unless you go into the
LAN/Properties and [X] File/Print Sharing box. Looking to
enable the admin shares..

Hi

Only way I know about is to use snetcfg.exe to uninstall and then install
F&PS to get it enabled from a script, more here:

http://groups.google.com/[email protected]
 
G

Guest

Thanks, I tested using:

snetcfg.exe -v -u MS_Server
snetcfg.exe -v -l %windir%\Inf\NETSERV.INF -c s -i
MS_Server

& it worked!
-----Original Message-----
ebe said:
We have a need to automate a bunch of XP Pro workstations
to enable File/Print Sharing & we don't want to have to
visit each computer. I found registry items that relate to
this, but they do not work unless you go into the
LAN/Properties and [X] File/Print Sharing box. Looking to
enable the admin shares..

Hi

Only way I know about is to use snetcfg.exe to uninstall and then install
F&PS to get it enabled from a script, more here:

http://groups.google.com/groups?selm=402BF089.E39AE5FB% 40hydro.com


--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide: http://www.microsoft.com/technet/scriptcenter


.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top