Link to home
Start Free TrialLog in
Avatar of jdolan2587
jdolan2587

asked on

Login Script to map drive

Hi,

You guys have helped me in the past with a login script to map a drive across domains.  

Below is the script that is run at startup:
net use e: \\vlab\10 dolan /user:vlab\10 /persistent:no

The computer is logged in as student as the username and an empty or no password.  The script crosses domains to username 10 in the vlab domain with the password dolan.

The script works great with one exception... I tried it this morning with username 7 and password dolan and it didn't work.

I have usernames from 1-33...all of the 2 digit scripts work but none of the single digit scripts work.

Any ideas??

There are no conflicts with drive letters, I tried it on multiple computers with the same result.
Avatar of sirbounty
sirbounty
Flag of United States of America image

are there leading 0s?

net use e: \\vlab\07 ...?
ASKER CERTIFIED SOLUTION
Avatar of kadadi_v
kadadi_v
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jdolan2587
jdolan2587

ASKER

I tried it with and without 0's
what if you enclose it quotes?

net use e: "\\vlab\7" dolan /user:"vlab\7" /persistent:no

I wonder if it's a problem with having a single character as a username... : |
Quotes don't work so it has something to do with a single digit username.

Any other ideas?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I guess the answer to my question is it can't be done.  Thanks for your help.