|
About this: "I have a network w/ a VPN to two other locations. They have their own login server, but replicate to all the other DC's (Windows 2000 Native AD). How do you make a seperate login script file that will map what they need to their specific server (i.e. file shares and printers)? I tried doing this and that's how I screwed it all up. Not a programmer, but starting to feel like one. I'm pretty impressed with the program and once you figure out the specifics, it works. I just need to know how this would work. Any ideas would be great!"
You can separate the users by their homedir, i.e. $h=@homedir.
Then, using the substr command you can get the server name that the user belongs to. i.e. user: user1 / server: server1 / homedir: \\server1\user1 ==> $s=substr($h,1,9). This way you do $s="\\server1" <=== Server name.
After that, you can use $s in your script: use e: $s+"\dep" use f: $s+"\sof" use i: $s+"\des" use j: $s+"\pro" use y: $s+"\cd_rom" so on....
If you give me more details, I can help you to finish you script.
|