removing and adding a drive mapping with a script

Posted on 2004-03-26
Last Modified: 2010-04-13
I have 20 pc's that have a network mapping to a remote share they where mapped individually at each 2000 workstation to a 2000 server and set to connect again at login.  I would like to move the share to another server.  What is the most effective way to remove the current mapping and create a new one to the share on the new server? thanks
Question by:oreillyrules
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
LVL 57

Accepted Solution

Pete Long earned 250 total points
ID: 10689215
use the following Ill call the drive W:

net use w: /delete /y > nul: 2>nul:
net use w: \\newserver\newfolder

put in the logon script or save it in notepad with a .bat extension and go round with a floppy :)
LVL 57

Expert Comment

by:Pete Long
ID: 10689231
or Email the batch file to your users and tell them to run it (outlook might block it though) so zip it first

LVL 57

Expert Comment

by:Pete Long
ID: 10689253
it will work without the "/y > nul: 2>nul:" bit :)
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)


Author Comment

ID: 10690343
thank you, worked like a charm
LVL 57

Expert Comment

by:Pete Long
ID: 10690371
Fantastic Glad I could Help
LVL 57

Expert Comment

by:Pete Long
ID: 10690393
oreillyrules I notice all your questions are open? you need to accept a comment to close the question
LVL 57

Expert Comment

by:Pete Long
ID: 10705188

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Windows WEb Server sp2 13 525
Windows SBS 2003 filling up disk with NTbackup files 6 183
P2V Windows Server 2000 - Network Issue 14 65
Windows  Active Directory  Quesiton 8 136
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
We asked our MSP customer base what their favorite tools were and how they help them serve clients. We focused our questions on favorite tools in the following categories: >PSA tools >RMM tools >Alert management tools >Communication tools and Mo…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question