#132390 - 2005-01-13 06:54 PM
Kixtart question problems
|
Joel2941
Fresh Scripter
Registered: 2004-12-17
Posts: 12
|
Question #1: I'm using an NT4 Domain with a PDC and BDC I've gone ahead and installed KIX32.exe,Kx16.dll and kix32.dll in location \\winnt\system32\repl\import\Scripts the files also show up in the NETLOGON when I drill down in My Network Places. A couple of problems that I'm having is that when I login my drives do not map but when I drill down and double click on logon.bat which executes @ECHO OFF \\servername\netlogon\kix32.exe \\servername\netlogon\mmb.kix
All my drives map to my locations with an error message that says cmd.exe was started with the above path as the current directory. UNC paths are not supported. Defaulting to windows directory.
Can get this one resolved.
Question number 2
in my mmb.kix file I need to set code to be able to map to the individuals home drive. Here is the code that I'm using below where do I enter the code to map to my home drives.
$group = "Windows Group 1" $drive = "F:" $path = "\\server\share" GOSUB "MAPDRIVE"
$group = "Windows Group 2" $drive = "G" $path = "\\server\share" GOSUB "MAPDRIVE"
$group = "Windows Group 3" $drive = "H:" $path = "\\server\share" GOSUB "MAPDRIVE"
:MAPDRIVE IF LEN("$group") = 0 OR INGROUP("$group") = 1 IF EXIST("$drive\") = 1 USE $drive /DELETE IF @ERROR > 0 ? " Recieved Error(@error) when disconnecting $drive." ENDIF ENDIF USE $drive "$path" IF @ERROR = 0 ? " Successfully connected $drive to $path for group $group." ELSE ? " Error(@ERROR) trying to map $drive to $path for group $group." ENDIF ENDIF RETURN
I will appreciate any help that is given to me thank you Joel
|
|
Top
|
|
|
|
#132391 - 2005-01-13 07:10 PM
Re: Kixtart question problems
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
#1 is standard... ignore it or throw a CLS after it to hide it
|
|
Top
|
|
|
|
#132392 - 2005-01-13 07:17 PM
Re: Kixtart question problems
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
instead of gosubs, what about functions??
I know, you are just starting out.
I think you are meaning the @homeshr macro
$group = "domain users"
$drive = "H:"
$path = @homeshr
GOSUB "MAPDRIVE"
|
|
Top
|
|
|
|
#132393 - 2005-01-13 07:37 PM
Re: Kixtart question problems
|
Les
KiX Master
   
Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
|
First off, you fail to mention what OS the clients are. Second, never hard code the DC name cuz then you don't have the fault tolerance of two DCs. Third, did you setup replication to get NetLogon on both DCS? Fourth, F: and H: have a colon, but not G. Fifth, do not wrap vars in quotes. Sixth, please, PLEASE, P L E A S E, use the code tags to post.
If @homeshr is not defined in the users' profile, you should be able to user @UserID in the path.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.
|
|
Top
|
|
|
|
#132395 - 2005-01-17 05:44 PM
Re: Kixtart question problems
|
Joel2941
Fresh Scripter
Registered: 2004-12-17
Posts: 12
|
Les
I would like to apologize for not using the correct Code Tags for this post I will try to avoid this mistake in the future. thank you
|
|
Top
|
|
|
|
#132397 - 2005-01-17 05:54 PM
Re: Kixtart question problems
|
Joel2941
Fresh Scripter
Registered: 2004-12-17
Posts: 12
|
First off, you fail to mention what OS the clients are. XP Professional Service pack 2 Second, never hard code the DC name cuz then you don't have the fault tolerance of two DCs. Answer I'm using PDC and BDC NT4 Domain enviroment Third, did you setup replication to get NetLogon on both DCS? I have replication working Fourth, F: and H: have a colon, but not G. Fifth, do not wrap vars in quotes. Answer don't undersatand what your asking me here
Sixth, please, PLEASE, P L E A S E, use the code tags to post Did I use the correct Code to post this message Quote:
|
|
Top
|
|
|
|
#132400 - 2005-01-17 09:06 PM
Re: Kixtart question problems
|
Joel2941
Fresh Scripter
Registered: 2004-12-17
Posts: 12
|
Les
Ok it appears that my replication is working through my PDC and BDC. Why is it that when one of my users login then they are mapped to all the drives that are in my mmb.kix file. What should I look for
|
|
Top
|
|
|
|
#132403 - 2005-01-17 11:01 PM
Re: Kixtart question problems
|
Joel2941
Fresh Scripter
Registered: 2004-12-17
Posts: 12
|
I'm laughing GREAT REPLY. Les, I have Global Groups that I assign to my user if I don't want one user to be mapped to a specific drive I remove the global group but it still maps the drive for them. Does this explain it Thank you
|
|
Top
|
|
|
|
#132405 - 2005-01-17 11:08 PM
Re: Kixtart question problems
|
Joel2941
Fresh Scripter
Registered: 2004-12-17
Posts: 12
|
I did and it all maps fine. The problem is that when I don't want all the drives to map to an individual that isn't assigned to that drive. So I remove him from the global group
|
|
Top
|
|
|
|
#132407 - 2005-01-18 04:42 PM
Re: Kixtart question problems
|
Joel2941
Fresh Scripter
Registered: 2004-12-17
Posts: 12
|
Thanks Less for your help I have some error messages when I do that I'm going to attempt to take it from here. Thanks to all that have helped me Joel
|
|
Top
|
|
|
|
#132408 - 2005-01-25 09:55 PM
Here is my problem
|
Joel2941
Fresh Scripter
Registered: 2004-12-17
Posts: 12
|
I've been reading and reading so I'm breaking down and asking another stupid question. Why is it that when I have 20 global groups on my PDC and bdc I assign 5 groups to one user then why does the user get 20 mapped drives? I've tried to access the drives that he's not authorized to get into and he's doesn't get in. How can I get his PC to only see the drives that his machine is assigned to
|
|
Top
|
|
|
|
#132409 - 2005-01-25 10:31 PM
Re: Here is my problem
|
Mart
KiX Supporter
   
Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
|
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 1095 anonymous users online.
|
|
|