+ Post New Thread
Results 1 to 3 of 3
Scripts Thread, Script to map netowrk drives in Coding and Web Development; Hi, I'm trying to set up a script to map network drives when an XP laptop loses connection and then ...
  1. #1
    purpleoakley's Avatar
    Join Date
    Sep 2010
    Posts
    30
    Thank Post
    2
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Script to map netowrk drives

    Hi,

    I'm trying to set up a script to map network drives when an XP laptop loses connection and then regains it. The user log on is done by Group Policy.
    I have tried using NET USE Y: \\servername\networkshare but it didn't work (not sure I was doing it correctly as we are trying to map about 5 drives)

    Any help appreciated.
    H

  2. #2
    chazzy2501's Avatar
    Join Date
    Jan 2008
    Location
    South West
    Posts
    1,723
    Thank Post
    206
    Thanked 254 Times in 206 Posts
    Rep Power
    65
    You could use the /persistent switch this will keep the drive mapped even if there is a netowrk failure. You can do this without scripting if you start using GPP with CSE installed for XP. It can also map printers and change settings for programs that are not controlled by GPOs...

  3. #3

    Join Date
    Jul 2010
    Posts
    484
    Thank Post
    51
    Thanked 13 Times in 11 Posts
    Rep Power
    10
    I have just set this up in sysvol and used the same as you and it works for new drive letter.

    In the past when I have moved shares i have had to use
    net use p: /delete /y
    net use p: //newthing

    needed to delete the drive first before re-adding it

SHARE:
+ Post New Thread

Similar Threads

  1. I need a VB Script to Map a Drive
    By fiza in forum How do you do....it?
    Replies: 7
    Last Post: 11th December 2013, 12:44 PM
  2. Batch file to map network drive
    By googlemad in forum Windows
    Replies: 4
    Last Post: 22nd October 2009, 02:07 PM
  3. Script to map drive by OU
    By cookie_monster in forum Scripts
    Replies: 1
    Last Post: 12th October 2009, 09:02 PM
  4. Replies: 5
    Last Post: 26th November 2007, 06:40 PM
  5. Veritas backup solution to mapped network drive
    By Crackcode in forum How do you do....it?
    Replies: 0
    Last Post: 21st April 2007, 10:03 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •