Map Network Drives

D

Dan

I need to know how i can map some network drives via a batch file but i need
to also input a username and password in the batch file. I want to be able
to vpn in a company and then click on the correct batch file and it will map
drives with a certain username and password. I tried to do this with the net
use command but had no luck..
 
L

Luke Robertson

Dan said:
I need to know how i can map some network drives via a batch file but i need
to also input a username and password in the batch file. I want to be able
to vpn in a company and then click on the correct batch file and it will map
drives with a certain username and password. I tried to do this with the net
use command but had no luck..

I don't think you can send username / password with a batch file.
Do you want to use different credentials to map network drives, or map
differnet drives based on what user is logged on?
You can write a script in VBScript that will decide what user is
logged on, and map drives accordingly (even map drives based on group
membership).
If you would like an example of this script, email me and I can send
it ([email protected])
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top