+ Reply to Thread
Results 1 to 2 of 2

Thread: Script to point mapped drives to a new server

  1. #1
    Member
    Join Date
    Nov 2008
    Posts
    74

    Post Script to point mapped drives to a new server

    I am running new Windows Server 2003. I have some folders which I have moved from old server to new Windows Server 2003, but users are mapping to old server name. So, I want a script which will automatically replaces a certain server name with a new server name. One of the user has mapped on his system as “scans on ‘nws’ (T:\)”. Now the new server name is nws2. How can I replace this? Please help me.

  2. #2
    Senior Member
    Join Date
    Oct 2008
    Posts
    907

    Default

    First delete the current mapped drive and then create a new mapped drive. Below are the commands:

    To delete the current mapped drive:

    net use T: \\nws\scans /delete

    To create a new mapped drive to new server share:

    net use T: \\nws2\scans


    If you want the mapped drives to be permanent, then just add the switch /persistent:yes, like:

    net use T: \nws2\scans /PERSISTENT:YES

+ Reply to Thread

Similar Threads

  1. Replies: 0
    Last Post: 11-12-2008, 10:28 AM
  2. Formatting a Single Data Point in Excel 2007
    By equilibrium in forum Applications
    Replies: 0
    Last Post: 11-11-2008, 09:43 AM
  3. Using a specialized script editor
    By crazy4 in forum Programming
    Replies: 0
    Last Post: 11-03-2008, 10:21 AM
  4. Using PSExec to execute a script on a remote machine
    By sword in forum Operating systems
    Replies: 0
    Last Post: 10-07-2008, 11:00 AM
  5. Tips for Files and Folders for Drives in Windows XP
    By gopalakrishna in forum Operating systems
    Replies: 0
    Last Post: 08-14-2008, 06:36 AM

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

LinkBacks Enabled by vBSEO