Hello,
done a search and haven't found anything exactly like what I'd like to do.
We have a single domain with users in multiple locations. Each main location has its own file server and users map their home drive based on their location. We've had issues with home drives not mapping in remote locations that do not have a local server. We believe it may be timing out, that issue is being looked into.
Rather than have our IT staff manually map the drives, I'd like to do a small script we could place on their desktop that allows users to put their primary location, which would then map their home drive to the correct server. Something like this.
Please select your primary location:
0 = HQ
1= Region 1
2= Region 2
3 = Region 3
4 = Region 4
Based on their answer I assume it would then run a command
HQ
Net Use K:\\hqserver\vol\%username%
Reg 1
Net Use K:\\r1server\vol\%username%
Reg 2
Net Use K:\\r2server\vol\%username%
Reg 3
Net Use K:\\r3server\vol\%username%
Reg 4
Net Use K:\\r4server\vol\%username%
I've tried writing a few, but scripting is definitely not a strong suit. I'm sure it would take a talented scripter about 2 minutes.
TIA