#16822 - 2002-01-29 05:23 PM
How hard is this to do with Kix???
|
ryanro
Fresh Scripter
Registered: 2002-01-29
Posts: 10
|
Ok, here is the scenerio: I have 3 offices with 3 domain controllers in the same domain. I want to write a script that will allow a user in the remote office to login there and map all of his drives to the local server. Then if the user comes to another office, I want him to login with the same login but map to the shares on the local server in the new office. Here are the details: Primary Domain Controller : NT1 Subnet: 10.0.0.0 255.255.255.0 Remote DC : Gonzales Subnet: 10.0.2.0 255.255.255.0 Name of login scripts that will be used: For Primary DC : perkins.bat For Remote DC : gonzales.bat I'm trying to figure this out in vbs but someone told me to try kix first b/c it's a lot easier and more powerful than vbs. Does anyone out there know how to do this with kix?? Thanks in advance for your help.. Ryan
|
Top
|
|
|
|
#16826 - 2002-01-29 05:50 PM
Re: How hard is this to do with Kix???
|
ryanro
Fresh Scripter
Registered: 2002-01-29
Posts: 10
|
Thank you!!!
|
Top
|
|
|
|
#16827 - 2002-01-29 06:03 PM
Re: How hard is this to do with Kix???
|
ryanro
Fresh Scripter
Registered: 2002-01-29
Posts: 10
|
Whoops, one thing I forgot to mention is that if they are logging in to NT1, they will need to map drives to different servers and if the login to gonzales, they will only map to one server. Let me ask you this, is there a way in kix to call batch files, for example if it sees that the subnet is nt1, can it call nt1.bat and vice versa for gonzales. If so, can you give me an example.Thanks again for the help Ryan
|
Top
|
|
|
|
#16829 - 2002-01-29 06:25 PM
Re: How hard is this to do with Kix???
|
ryanro
Fresh Scripter
Registered: 2002-01-29
Posts: 10
|
yeap, exactly..Here it is in full:User logs in to 10.0.0.1: net use j: \\nt3\public net use p: \\nt1\projects net use i: \\nt2\shared User logs in to 10.0.2.1 Net uses everything on one server, not multiple..
|
Top
|
|
|
|
#16831 - 2002-01-29 06:39 PM
Re: How hard is this to do with Kix???
|
ryanro
Fresh Scripter
Registered: 2002-01-29
Posts: 10
|
Now I'm really confused ..Keep in mind, I've never used kix or programmed before. My boss asked me to do this for him and I have no clue where to start...
|
Top
|
|
|
|
#16832 - 2002-01-29 06:44 PM
Re: How hard is this to do with Kix???
|
Radimus
Moderator
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
code:
$gateway=enumipinfo(0,3) select case $gateway=" 10. 0. 0. 1" shell "\\nt1\netlogon\perkins.bat" case $gateway=" 10. 0. 2. 1" shell "\\gonzales\netlogon\gonzales.bat" case 1 ? "can't figure out where I am. Quitting" quit endselect
|
Top
|
|
|
|
#16833 - 2002-01-29 06:45 PM
Re: How hard is this to do with Kix???
|
ryanro
Fresh Scripter
Registered: 2002-01-29
Posts: 10
|
Thanks again!!! Now do you know how to do it with vbs Ryan [ 29 January 2002: Message edited by: ryanro ]
|
Top
|
|
|
|
#16835 - 2002-01-30 05:32 PM
Re: How hard is this to do with Kix???
|
ryanro
Fresh Scripter
Registered: 2002-01-29
Posts: 10
|
It still isn't working, it jumps straight to case 1 and quits....
|
Top
|
|
|
|
#16838 - 2002-01-30 08:42 PM
Re: How hard is this to do with Kix???
|
ryanro
Fresh Scripter
Registered: 2002-01-29
Posts: 10
|
The most recent one from this site...
|
Top
|
|
|
|
#16840 - 2002-01-30 08:55 PM
Re: How hard is this to do with Kix???
|
ryanro
Fresh Scripter
Registered: 2002-01-29
Posts: 10
|
Don't worry about it, I got it. Thanks to the post about seeing what gateway it's using. Thanks for all the help everyone!!!!
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 557 anonymous users online.
|
|
|