Page 1 of 2 12>
Topic Options
#132390 - 2005-01-13 06:54 PM Kixtart question problems
Joel2941 Offline
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 Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
#1 is standard... ignore it or throw a CLS after it to hide it
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#132392 - 2005-01-13 07:17 PM Re: Kixtart question problems
Radimus Moderator Offline
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"
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#132393 - 2005-01-13 07:37 PM Re: Kixtart question problems
Les Offline
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
#132394 - 2005-01-15 04:12 PM Re: Kixtart question problems
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
You might also want to read the FAQ Forum to familiarize yourself more with KiXtart.
_________________________
There are two types of vessels, submarines and targets.

Top
#132395 - 2005-01-17 05:44 PM Re: Kixtart question problems
Joel2941 Offline
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
#132396 - 2005-01-17 05:48 PM Re: Kixtart question problems
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4572
Loc: USA
Jens, I couldn't resist... its KiXtart... not kixtat
_________________________
(... better days ahead)

Top
#132397 - 2005-01-17 05:54 PM Re: Kixtart question problems
Joel2941 Offline
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
#132398 - 2005-01-17 06:42 PM Re: Kixtart question problems
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
XP clients do not need the DLLs.

XP clients may need a GPO to wait on network... See Fast Logon Optimization.

If you hard code the DC name and that DC is down, your script would not work.

Do not wrap vars in quotes is not a question, it is a suggestion.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#132399 - 2005-01-17 07:10 PM Re: Kixtart question problems
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Al_Po:

I removed the 'r' key from my keyboard as I try to fully emulate a Boston accent.
_________________________
There are two types of vessels, submarines and targets.

Top
#132400 - 2005-01-17 09:06 PM Re: Kixtart question problems
Joel2941 Offline
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
#132401 - 2005-01-17 09:33 PM Re: Kixtart question problems
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Use DEBUG ON to step through the code and see why all drives are being mapped.
_________________________
There are two types of vessels, submarines and targets.

Top
#132402 - 2005-01-17 09:44 PM Re: Kixtart question problems
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
In your first post you complain that they do NOT map, and now you complain that they DO? So, what exactly is your problem? Either they do or they don't... which is it?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#132403 - 2005-01-17 11:01 PM Re: Kixtart question problems
Joel2941 Offline
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
#132404 - 2005-01-17 11:03 PM Re: Kixtart question problems
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
So, did you run the code with DEBUG ON to see what exactly is happening?
_________________________
There are two types of vessels, submarines and targets.

Top
#132405 - 2005-01-17 11:08 PM Re: Kixtart question problems
Joel2941 Offline
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
#132406 - 2005-01-17 11:16 PM Re: Kixtart question problems
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
After modifying the group, did you try flushing the KiX group cache with -F as the manual suggests?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#132407 - 2005-01-18 04:42 PM Re: Kixtart question problems
Joel2941 Offline
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 Offline
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 Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
Oke, rewritten your code in your fisrt post.

First of all i removed all the gosub's and labels. I dont like them all that much
Taken all the variables and/or kix macro's outside the quotes, dont put them inside quotes
You could also use a select - case - endselect statement instead of the if - else - endif's or use a map drive UDF instead of the use somedrive: \\server\share stuff.
If everything works ok I would remove some error checking to make it a bit moer readable.

This code should do the trick:

Code:

If InGroup("Windows Group 1")
;remove all drive mappings
Use * / delete
If @ERROR <> 0
? "Recieved Error("+ @error + ") when disconnecting all drives."
Else
?"Successfully removed all drive mappings."
EndIf
;map U: drive to users folder
Use U: "\\server\share\" + @USERID
If @ERROR <> 0
? "Recieved Error(" + @error + ") when connecting drive U: to \\server\share\." + @USERID
Else
?"Successfully mapped drive U: to \\server\share\" + @USERID
EndIf
;map F: drive to some folder
Use F: "\\server\share"
If @ERROR <> 0
? "Recieved Error(" + @error + ") when connecting drive F: to \\server\share."
Else
?"Successfully mapped drive F: to \\server\share."
EndIf
EndIf

If InGroup("Windows Group 2")
;remove all drive mappings
Use * / delete
If @ERROR <> 0
? "Recieved Error(" + @error + ") when disconnecting all drives."
Else
?"Successfully removed all drive mappings."
EndIf
;map U: drive to users folder
Use U: "\\server\share\" + @USERID
If @ERROR <> 0
? "Recieved Error(" + @error + ") when connecting drive U: to \\server\share\." + @USERID
Else
?"Successfully mapped drive U: to \\server\share\" + @USERID
EndIf
;map H: drive to some folder
Use G: "\\server\share"
If @ERROR <> 0
? "Recieved Error(" + @error + ") when connecting drive G: to \\server\share."
Else
?"Successfully mapped drive G: to \\server\share."
EndIf
EndIf

If InGroup("Windows Group 3")
;remove all drive mappings
Use * / delete
If @ERROR <> 0
? "Recieved Error(" + @error + ") when disconnecting all drives."
Else
?"Successfully removed all drive mappings."
EndIf
;map U: drive to users folder
Use U: "\\server\share\" + @USERID
If @ERROR <> 0
? "Recieved Error(" + @error + ") when connecting drive U: to \\server\share\." + @USERID
Else
?"Successfully mapped drive U: to \\server\share\" + @USERID
EndIf
;map H: drive to some folder
Use H: "\\server\share"
If @ERROR <> 0
? "Recieved Error(" + @error + ") when connecting drive H: to \\server\share."
Else
?"Successfully mapped drive H: to \\server\share."
EndIf
EndIf



[edit]
damn those typo's
[/edit]


Edited by R2D2 (2005-01-25 10:34 PM)
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
Page 1 of 2 12>


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1874 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.129 seconds in which 0.097 seconds were spent on a total of 11 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org