I writing a simple script that should map network drives
It work with single user but once I add to the gpo policies I got the
following error
\\xyz.com\sysvol\xyz.com\policies\{0a247b5d-dc51-40c9-BCF3-dd8cfb36838b}\User\Scripts\login\login.vbs
line 2
char 1
error the local device is already in use
----------------------------------------------------
Set wshNetwork = CreateObject("WScript.Network")
wshNetwork.MapNetworkDrive "X:" , "\\xyz.com\fs\employee_folders\" &
wshNetwork.UserName
wshNetwork.MapNetworkDrive "Y:" , "\\xyz.com\fs\departments"
wshNetwork.MapNetworkDrive "Z:" , "\\xyz.com\fs\public"
Set ADSysInfo = CreateObject("ADSystemInfo")
Set CurrentUser = GetObject("LDAP://" & ADSysInfo.UserName)
WSHNetwork.MapNetworkDrive
------------------------------------
It part dfs \\\xyz.com\fs then the share
Please help
Frank
Archived from group: microsoft>public>vb>syntax