Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

removing and adding a drive mapping with a script

Posted on 2004-03-26
8
Medium Priority
?
145 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
[X]
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
8 Comments
 
LVL 57

Accepted Solution

by:
Pete Long earned 1000 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
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 

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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

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…
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

705 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