Pushing a script for File and Print sharing enabled?

  • Thread starter Thread starter BobMarley
  • Start date Start date
B

BobMarley

We have 5000 pc's in our domain. About 1/3 were installed with File
and Print sharing disabled. I want to see if this is possible:

via login script or Policy, i want to push a key or update that
enables file and print sharing.

concerns:
1) can it be done if the person logging in is not a local admin?
2) would files need to be installed or can i just push the key out?
3) how do i do it?? I can't find the key or syntax online.
4) Pushing it to pc's already enabled, won't disable there's i would
hope.

Any help is appreciated!!!
 
BobMarley said:
We have 5000 pc's in our domain. About 1/3 were installed with File
and Print sharing disabled. I want to see if this is possible:

via login script or Policy, i want to push a key or update that
enables file and print sharing.

concerns:
1) can it be done if the person logging in is not a local admin?

Yes, but you need to use the COMPUTER STARTUP
script not the User Logon script.
2) would files need to be installed or can i just push the key out?

You don't need files. The settings should work.
(But if the service is DISABLED -- not set to just
manual, it may require another reboot to take effect.)
3) how do i do it?? I can't find the key or syntax online.

Easiest way to find "unknown keys" is to use one of the
registry watching utilities (e.g., free one at SysInternals.com)

Run it on a machine and do the changes manually while
recording the registry changes (you can also watch for
files if you have a more complicated situation.)
4) Pushing it to pc's already enabled, won't disable there's i would
hope.

No, but you still might not want it to just run over
and over -- the script should check for this somehow.
(There are a variety of schemes including flag file,
looking for the service with "net start", checking the
registry keys you wish to change....)
 
Back
Top