Soldato
- Joined
- 7 Mar 2005
- Posts
- 19,606
- Location
- LU7
I work in a school where the Sixth Form students use some old RM laptops. I believe they run XP Home which means they can't join a domain. This means we can't have a student log in to their own account as if they were on a computer in the IT room. They use a generic account with a common password.
Now I know it is possible to have a batch script run either at log on, or by being executed by a user, to map a network drive, but is it possible to have a batch script ask the user for their user name and password, i.e, their network user name and password, and from that map the correct drives for them?
They would still log on using the generic account and common password but is it possible to have a batch script that runs at logon that asks for the users' login details and then maps the according drives for them? I'm thinking this would be the best solution so that each time a Sixth Form student logs into the machine they can then 'log in' to their network drives and save/access files across the network.
I'll obviously do some research tomorrow as I've just thought of this potential solution to the problem and its a bit late to do that kind of thinking right now!
I've got to make my lunch for tomorrow and get to bed.
If someone can confirm whether or not this is possible I have a feeling I can, potentially, put a script together myself. 
Just to clarify something I've just realised might not be very clear, I want the script to ask the student for their user name and then their password and then with those details, if correct, run the 'net use' command to map the correct drives. So I need to get a script to take some input from the students in the form of user names and passwords and then pass each to the server to allow me to map the correct drives.
Now I know it is possible to have a batch script run either at log on, or by being executed by a user, to map a network drive, but is it possible to have a batch script ask the user for their user name and password, i.e, their network user name and password, and from that map the correct drives for them?
They would still log on using the generic account and common password but is it possible to have a batch script that runs at logon that asks for the users' login details and then maps the according drives for them? I'm thinking this would be the best solution so that each time a Sixth Form student logs into the machine they can then 'log in' to their network drives and save/access files across the network.
I'll obviously do some research tomorrow as I've just thought of this potential solution to the problem and its a bit late to do that kind of thinking right now!



Just to clarify something I've just realised might not be very clear, I want the script to ask the student for their user name and then their password and then with those details, if correct, run the 'net use' command to map the correct drives. So I need to get a script to take some input from the students in the form of user names and passwords and then pass each to the server to allow me to map the correct drives.
Last edited: