Question Locked

How do I re-enable Administrative shares using a script?

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hello,

I have to re-enable all of the admin shares in my office in order to use SMS... how do I make that happen on all the XP workstations? I'd like to have a script running that I can attach to a GPO... I'm kind of a scripting newb.. so some help would be appreciated. thanks!

2 replies

by mdphoenix

Here's the registry keys needed to re-enable them. Hope it helps a bit...

Servers
For NT 4.0/W2K/Windows Server 2003s, the change is:

Hive: HKEY_LOCAL_MACHINE
Key: SYSTEM\CurrentControlSet\Services\LanManServer\Parameters
Name: AutoShareServer
Data Type: REG_DWORD
Value: 0

Idiot proof note: If you can't find the value in the registry under the exact location (i.e. it does not exist) - please right click in the right pane of the window and create it.

Note: A reboot is necessary for this to take effect.

Workstations
For NT 4.0 Workstation/W2K Pro/XP Pro, the change is:

Hive: HKEY_LOCAL_MACHINE
Key: SYSTEM\CurrentControlSet\Services\LanManServer\Parameters
Name: AutoShareWks
Data Type: REG_DWORD
Value: 0

This discussion is closed to new replies.