Solved

removing and adding a drive mapping with a script

Posted on 2004-03-26
8
138 Views
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
0
Comment
Question by:oreillyrules
  • 6
8 Comments
 
LVL 57

Accepted Solution

by:
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 :)
0
 
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

Pete
0
 
LVL 57

Expert Comment

by:Pete Long
ID: 10689253
it will work without the "/y > nul: 2>nul:" bit :)
0
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 

Author Comment

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

Expert Comment

by:Pete Long
ID: 10690371
Fantastic Glad I could Help
0
 
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
0
 
LVL 57

Expert Comment

by:Pete Long
ID: 10705188
ThankQ
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Syteline and a new domain controller 4 714
Migrate DFS role 3 852
Migration  Windows server 2000 to Server 2012 Essentials 4 1,431
Get process CPU use Win2000 server in visual basic 12 141
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…
Read about the ways of improving workplace communication.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

786 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