Drive Mappings

howmad2
howmad2 used Ask the Experts™
on
I am migrating data to a new server.  I would like to create two batch files.
One to permanently disconnect the drive mappings to the old 2003 server
and a second to map to similar shares on a new server 2008 server.  I would like the new maps to reconnect after reboot.  I'd like to only have to run the second bat file once instead of putting it in a startup group.   I have windows XP and 7 clients.  I can create a Policy to do this later when all the servers are migrated, but I need something to help me in the interim.  I've see the NET USE and SUBST commands but Im concerned that the drive mappings wont survive the reboot.  

Thank You
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
I use kixtart in a logon script. Free and probably will do what you need. Create a bat file and put that in the users AD profile tab as needed
Commented:
if you want use NET USE and for you is important to remember drives after reboot maybe use something like that:
net use s: \\server1\source /persistent:yes

if you type /persistent:yes your map drives survive reboot;)
Steven CarnahanAssistant Vice President\Network Manager

Commented:
NET USE <drive letter>: \\<server>\<share> /PERSISTENT:yes

Will "survive the reboot"
OWASP Proactive Controls

Learn the most important control and control categories that every architect and developer should include in their projects.

Steven CarnahanAssistant Vice President\Network Manager

Commented:
^
     |

Too slow as usual.   :)
One last thing to add to this question. You dont really need two scripts. You can disconnect and reconnect in the same script.

Something similar to

NET USE z: /d /y
NET USE z: \\server\share

Author

Commented:
Tested it out...Works great.  Thank You.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial