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 ...
29th January 2014, 08:54 AM #1
Script to map netowrk drives
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.
29th January 2014, 09:07 AM #2
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...
29th January 2014, 09:24 AM #3
- Rep Power
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
By fiza in forum How do you do....it?
Last Post: 11th December 2013, 12:44 PM
By googlemad in forum Windows
Last Post: 22nd October 2009, 02:07 PM
By cookie_monster in forum Scripts
Last Post: 12th October 2009, 09:02 PM
By sidewinder in forum Windows
Last Post: 26th November 2007, 06:40 PM
By Crackcode in forum How do you do....it?
Last Post: 21st April 2007, 10:03 AM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)