Solved

removing and adding a drive mapping with a script

Posted on 2004-03-26
8
136 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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

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…
What is Backup? Backup software creates one or more copies of the data on your digital devices in case your original data is lost or damaged. Different backup solutions protect different kinds of data and different combinations of devices. For e…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

743 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now