Removing and remapping network drives using logon script
I am currently using a logon script to map drives based on OU membership. I have recently changed servers and would like to point my network mappings to this server. The problem I have is that when i try to remove the old mapping and map the new, the drive is not being mapped on first logon. If I log off and back on then it works.
This is what i am currently using to remove the mapping and then map. The drive letter is U:
If isMember("Wholesale") then
If isMember("Wholesale") Then
objNetwork.MapNetworkDrive "E:", "\\FRTSSFTP\ABCClients", True ' Connect E: to \\FRTSSFTP\ABCClients
objNetwork.MapNetworkDrive "G:", "\\FRECFPS\Shared", True ' Connect G: to \\FRECFPS\Shared
objNetwork.MapNetworkDrive "S:", "\\FRTSITS\S_Drive", True ' Connect S: to \\FRTSITS\S_Drive
DriveMapper "U:", "\\FRECFPS\HomeDirs\" & strUser'" ' Connect U: to \\FRECFPS\HomeDirs\UserName
I need to map the u drive based on the user who logs in.
Any help will be appreciated.
Re: Removing and remapping network drives using logon script
Just go through this links.
|Tags: logon, script|
|Thread Tools||Search this Thread|
|Similar Threads for: "Removing and remapping network drives using logon script"|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Migrating from Server 2003 R2 to Server 2008 R2, issues with logon script and network when old DC is powered down||OctAvio2011||Operating Systems||5||20-08-2010 11:07 PM|
|Dumping logon name and logon script values to a text file - blank logon script field||Phil McNeill||Windows Server Help||3||17-08-2010 09:06 PM|
|Use logon script to map network printer||Mitch||Windows Server Help||4||18-12-2008 08:25 AM|
|Logon Script to Map Network Drive based on the primary group name||Jyran||Active Directory||3||23-10-2008 06:58 AM|
|Unable to map drives with logon script||c54618||Windows Server Help||5||03-05-2008 07:10 PM|