I have recently tried my very shaky hand at scripting....
And this is how it all began.. We currently have a problem with Admin$
Shares. On some of the computers the Admin$ share no longer exists.
Affects 2000 pro and Windows XP.
The registry location for this is as follows:
"HKLM\System\CurrentControlSet\Services\lanmanserver\parameters\"
ValueName = "AutoShareWks"
REG_DWORD = 1 (Admin$ is active)
REG_DWORD = 0 (Admin$ is not available)
So The problem that I have, is that I have created the following
script:
_______________________________________________________________________
Set oShell = CreateObject("WScript.Shell")
sRegKey = _
"HKLM\System\CurrentControlSet\Services\lanmanserver\parameters\"
sRegValueName = "AutoShareWks"
' enable AutoShareWks to 1
oShell.RegWrite sRegKey & sRegValueName, 1, "REG_DWORD"
_________________________________________________________________________
This script has been implemented using group policies as a startup
script. The script runs on windows XP but not on Windows 2000.
How do I trouble shoot this or find a workaround that works on 2000 and
XP.
Thanks.