msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

login issue error

 
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Syntax
Author Message
frank



Joined: 04 Oct 2007
Posts: 7

PostPosted: Sun Nov 25, 2007 12:49 pm    Post subject: login issue error Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Syntax All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group