Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Thread Tools Search this Thread
Old 17-12-2008
Join Date: Dec 2008
Posts: 1
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
objNetwork.RemoveNetworkDrive "G:",True,True
objNetwork.RemoveNetworkDrive "U:",True,True
End If

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
objNetwork.RemoveNetworkDrive "N:"
DriveMapper "U:", "\\FRECFPS\HomeDirs\" & strUser'" ' Connect U: to \\FRECFPS\HomeDirs\UserName
End If

I need to map the u drive based on the user who logs in.

Any help will be appreciated.


Charlene Jacobs
Reply With Quote
Old 17-12-2008
XSI XSI is offline
Join Date: May 2008
Posts: 271
Re: Removing and remapping network drives using logon script



Just go through this links.
Reply With Quote

  TechArena Community > Software > Software Development
Tags: ,

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

All times are GMT +5.5. The time now is 04:17 PM.