Results 1 to 2 of 2

Thread: Removing and remapping network drives using logon script

  1. #1
    Join Date
    Dec 2008
    Posts
    1

    Removing and remapping network drives using logon script

    Hi

    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:"
    'Wscript.Sleep(20000)
    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.

    Thanks

    Charlene Jacobs

  2. #2
    Join Date
    May 2008
    Posts
    271

    Re: Removing and remapping network drives using logon script


Similar Threads

  1. Replies: 5
    Last Post: 20-08-2010, 11:07 PM
  2. Replies: 3
    Last Post: 17-08-2010, 09:06 PM
  3. Use logon script to map network printer
    By Mitch in forum Windows Server Help
    Replies: 4
    Last Post: 18-12-2008, 08:25 AM
  4. Replies: 3
    Last Post: 23-10-2008, 06:58 AM
  5. Unable to map drives with logon script
    By c54618 in forum Windows Server Help
    Replies: 5
    Last Post: 03-05-2008, 07:10 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,750,143,506.89647 seconds with 16 queries