anna
(Getting the hang of it)
2004-02-12 09:16 PM
turning on print and file sharing

Hi guys,

Do you know what registry entry turns the print and file sharing on? I used the regshot16 and did before and after but it gives me bunch of entries.

thanks
Anna



LonkeroAdministrator
(KiX Master Guru)
2004-02-12 09:33 PM
Re: turning on print and file sharing

well well...
would look at services...

and anything that binds to network
haven't looked at it though.


Sealeopard
(KiX Master)
2004-02-12 11:12 PM
Re: turning on print and file sharing

That would be the 'Server' service.

LonkeroAdministrator
(KiX Master Guru)
2004-02-12 11:38 PM
Re: turning on print and file sharing

that was my bet too...
but then remembered the binds in the network tab...


Kdyer
(KiX Supporter)
2004-02-12 11:41 PM
Re: turning on print and file sharing

You are probably going to have to look at something like NET (or XNET from the KiXtart archive) start lanmanserver..

If you need a RegKey, look here -

HKLM\SYSTEM\CurrentControlSet\Services\lanmanserver

If you do a search from HKLM\SYSTEM\CurrentControlSet\Services, you can find this too.

Kent


Sealeopard
(KiX Master)
2004-02-12 11:45 PM
Re: turning on print and file sharing

However, by default file and printer sharing is enabled and the network bindings are in place.

I guess, as usual, we will have to wait for a much more detailed post by the original poster as not even the operating system is mentioned. She might talk about Windows 9x and not NT/2000/XP/2003.


anna
(Getting the hang of it)
2004-02-13 12:00 AM
Re: turning on print and file sharing

Operating system is windows 2000

AllenAdministrator
(KiX Supporter)
2004-02-13 01:13 AM
Re: turning on print and file sharing

This is not something that can be controlled in the registry or a service. We had the unpleasant experience in finding this out, during our migration to AD. For some strange reason, someone had suggested that all the facilites turn off File and Printer sharing. Once it was announced that we were going to AD, we needed to figure out a way to turn it back on. The first tool I found and used at the time was NETSET. It is included in the Resource Kit Utilities, but it not for the tame at heart. To get Netset to work, we had to first uninstall F&PS (because it was installed, but not checked) and then reinstall F&PS.

Well after our migration I found some other tools and they are described here: http://www.jsiinc.com/SUBJ/tip4700/rh4705.htm
Never used it, but it looks like it will do exactly what you need. To bad I couldn't find this when I needed it


Sealeopard
(KiX Master)
2004-02-13 03:07 PM
Re: turning on print and file sharing

Actually, Microsoft has all the tools available to reconfigure the networksetup via commandline. You'd use the NETSET.EXE togehter withan appropriately crafted .INF file as outlined in Microsoft KB 268781, Description of the Netset.exe Tool from the Windows 2000 Resource Kit

AllenAdministrator
(KiX Supporter)
2004-02-13 04:01 PM
Re: turning on print and file sharing

Jens,

Yes, using NETSET, we had to create two separate INF files, one to uninstall, and one to reinstall F&PS. However my point was, messing with these INF files is not much fun. Especially if you have any machines that have different protocols or providers. I would hope the other tools I linked to are a little easier to use.


Sealeopard
(KiX Master)
2004-02-13 04:49 PM
Re: turning on print and file sharing

However, why do you need to uninstall/reinstall it if simply enabling/disabling the service will do?

AllenAdministrator
(KiX Supporter)
2004-02-13 06:13 PM
Re: turning on print and file sharing

AFAIK NETSET doesn't offer a enable/disable option... Only install/Uninstall.

On machines that already had F&PS installed, but unchecked, running NETSET seemed to have no effect. But once we ran the uninstall inf, and then ran the install inf, it was installed and checked.

Who knows? Maybe it can be enabled some way, but that is how we got it to work.


Sealeopard
(KiX Master)
2004-02-13 06:15 PM
Re: turning on print and file sharing

NETSET = install/uninstall
service = enable/disable


AllenAdministrator
(KiX Supporter)
2004-02-13 06:32 PM
Re: turning on print and file sharing

Okay Jens... Heres a friendly challenge. Follow my steps, and you correct me where I'm wrong.

1. Start/Settings/Network Connections
2. Right Click on your Local Area Connection and Select Properties
3. Uncheck "File and Printer Sharing"
4. Click on OK
5. Go to Services
6. Stop the Server Service
7. Restart the Server Service
8. Go back to the Properties of the Local Area Connection


Is "File and Printer Sharing" on?


LonkeroAdministrator
(KiX Master Guru)
2004-02-14 02:25 AM
Re: turning on print and file sharing

well, my MS-quess would be yes.
it's on because you didn't reboot as required/asked (or was that only in win9x/NT?).