• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 148
  • Last Modified:

removing and adding a drive mapping with a script

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
oreillyrules
Asked:
oreillyrules
  • 6
1 Solution
 
Pete LongTechnical ConsultantCommented:
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
 
Pete LongTechnical ConsultantCommented:
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
 
Pete LongTechnical ConsultantCommented:
it will work without the "/y > nul: 2>nul:" bit :)
0
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.

 
oreillyrulesAuthor Commented:
thank you, worked like a charm
0
 
Pete LongTechnical ConsultantCommented:
Fantastic Glad I could Help
0
 
Pete LongTechnical ConsultantCommented:
oreillyrules I notice all your questions are open? you need to accept a comment to close the question
0
 
Pete LongTechnical ConsultantCommented:
ThankQ
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now