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.
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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... : |
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... : |
ASKER
Quotes don't work so it has something to do with a single digit username.
Any other ideas?
Any other ideas?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I guess the answer to my question is it can't be done. Thanks for your help.
net use e: \\vlab\07 ...?