Soldato
- Joined
- 24 Oct 2002
- Posts
- 6,242
- Location
- Portsmouth
Hi all
I need someone to write or guide me to a script as I can't find one that does what I want. Basically I have users on their own PC's connecting to our network via VPN and I would like them to have two drives mapped by running a script.
One is their home folder, the other is a simple folder share. The catch is being it's their computers the script cannot pick up the current local session username as it could be incorrect.
I need the script to first ask for their full domain username and password, and then I need it to to use those values to map to the users home folder and then a drive to two different letters.
So in this example I need the script to ask for
1) Domain Username
2) Domain Password
3) Map J:\ to \\servername\homefolders\<their username from above>
4) Map L:\ to \\servername\shared folder. This does not require their username.
It also needs some logic so if they don't actually have a home folder it doesn't bomb up with some error code.
Any ideas or pointers peeps?
Chris
I need someone to write or guide me to a script as I can't find one that does what I want. Basically I have users on their own PC's connecting to our network via VPN and I would like them to have two drives mapped by running a script.
One is their home folder, the other is a simple folder share. The catch is being it's their computers the script cannot pick up the current local session username as it could be incorrect.
I need the script to first ask for their full domain username and password, and then I need it to to use those values to map to the users home folder and then a drive to two different letters.
So in this example I need the script to ask for
1) Domain Username
2) Domain Password
3) Map J:\ to \\servername\homefolders\<their username from above>
4) Map L:\ to \\servername\shared folder. This does not require their username.
It also needs some logic so if they don't actually have a home folder it doesn't bomb up with some error code.
Any ideas or pointers peeps?

Chris