Drive Mappings

  • Thread starter Thread starter sburt
  • Start date Start date
S

sburt

A script that I created to map a drive to a shared folder
does not run when set in a group policy.

batch file - net use g: \\servername\share

How should this be done?
 
is the script not being run or does the script not create the correct
results?

if it isn't being run, look to see where you are keeping the script. Is it
in netlogon? If not, where? Is the folder shared for the users? If the
user doesn't have access he/she can't run it.

If you run the batch file on its own does it work? If not, try putting
quotation marks around the share ie "\\servername\share".

Need more information to know what the problem is.
 
If you are using an old DOS batch file you would use

net use g: \\servername\share

However if you are using a script, such as vbscript you
will need something like:

VBScript.

' Purpose of script to map a network drive to H:\
Dim oNet

Set oNet = CreateObject("Wscript.Network")

oNet.MapNetworkDrive "H:", "\\logonserver\home"

Hope this helps

Andy
 
Back
Top