Page 3 of 4 <1234>
Topic Options
#33865 - 2002-12-04 06:40 AM Re: INGROUP problem
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Get my GrpMaint.exe from my web site. Enumerate the members of the group:
code:
Grpmaint --enum --sam \\servername --Global --name REALEC1 --outfile grp.txt  

You may want try this command against all your DCs to verify the the group replication has taken place. Are all the results as you would expect?

What versions of KiXtart have you tried? I recommend that you use 4.02 or 4.12.

There has to be a logical explanation but you will have to apply a disciplined approach to troubleshooting this issue. We will have to move one step at a time.

[ 04. December 2002, 14:21: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#33866 - 2002-12-04 09:23 AM Re: INGROUP problem
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11628
Loc: CA
Steve,

Maybe I missed it here in the thread somewhere, but is this Windows NT 4.0 or 2000 AD?

Is it Single Master Domain model or other?

Thanks for replying with this info again if you've already supplied that.

As Howard says, it can be nailed down, but will require specific step by step analysis.

Top
#33867 - 2002-12-04 02:31 PM Re: INGROUP problem
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Steve,

As an alternative to Howard's utility..
code:
 BREAK ON
$domainstring = "DOMAINNAME"
$GroupString = "REALC1"
$GroupObj = GetObject("WinNT://" + $DomainString + "/" + $GroupString)
IF EXIST("H:\USERLIST.CSV")
DEL "H:\USERLIST.CSV"
ENDIF
IF Open( 3 , "H:\USERLIST.CSV" , 5 ) = 0
$hdr = "GROUPNAME"
$x = WriteLine( 3 , $hdr + @crlf)
For each $UserObj in $GroupObj.Members
$List = $List + $UserObj.Name
Next
$x = WriteLine( 3 , $list + @crlf)
?$list + @crlf
$x = CLOSE(3)
ENDIF

$groupobj = 0
?"Process is complete.."
SLEEP 2

You can use this to check and write the group list to a log from the domain:
code:
 BREAK ON
$domainstring = "DOMAINNAME"
$domainobj = GetObject("WinNT://" + $domainstring)
$domainobj.filter = Array("group")
IF EXIST("H:\GRPLIST.CSV")
DEL "H:\GRPLIST.CSV"
ENDIF
IF Open( 3 , "H:\GRPLIST.CSV" , 5 ) = 0
$hdr = "GROUPNAME"
$x = WriteLine( 3 , $hdr + @crlf)
FOR EACH $groupobj IN $domainobj
IF $groupobj.class = "Group"
$list = $list + $groupobj.name
ENDIF
NEXT
$x = WriteLine( 3 , $list + @crlf)
?$list + @crlf
$x = CLOSE(3)
ENDIF

$domainobj = 0
?"Process is complete.."
SLEEP 2

Or.. Groups of a user:

code:
 BREAK ON
$domainstring="ComputerName"
$userstring = "jdoe"
$userobj = GetObject("WinNT://" + $domainstring + "/" + $userstring)
IF EXIST("H:\PGRP.CSV")
DEL "H:\PGRP.CSV"
ENDIF
IF Open( 3 , "H:\PGRP.CSV" , 5 ) = 0
$hdr = "GROUPNAME"
$x = WriteLine( 3 , $hdr + @crlf)
FOR EACH $groupobj IN $userobj.groups
$list = $list + $groupobj.name
NEXT
$x = WriteLine( 3 , $list + @crlf)
?$list + @crlf
$x = CLOSE(3)
ENDIF

$userobj = 0
?"Process is complete.."
SLEEP 2

HTH,

Kent

[ 04. December 2002, 14:37: Message edited by: kdyer ]
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#33868 - 2002-12-04 02:45 PM Re: INGROUP problem
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Kent the reason I suggested using GrpMaint was that if this is W2K AD and he has replication intervals set too high then he may actually be creating the group on one DC and the client may be query a different DC. GrpMaint can easily check the group on each server. I would not want to troubleshoot this problem by connecting to the domain because we do not know for sure which server is being enumerated.

[ 04. December 2002, 14:48: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#33869 - 2002-12-04 02:52 PM Re: INGROUP problem
Steve M Offline
Fresh Scripter

Registered: 2002-05-08
Posts: 40
Loc: Orange,California
This is interesting, I put a ; infront of the ifingroup which means this should apply to everyone globaly and it did not map
code:
 ;if INGROUP("RealEC")
USE R: /delete /Persistent
USE R: "\\FS1\RealEC"
? "Member of RealEC group"
endif

_________________________
Steve

Top
#33870 - 2002-12-04 03:05 PM Re: INGROUP problem
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Steve,
If you comment out the IF you also MUST comment out the ENDIF!

Are you still messing with KiX 3.61? Download 4.12 and try a test script with just the IF INGROUP().
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#33871 - 2002-12-04 04:42 PM Re: INGROUP problem
Steve M Offline
Fresh Scripter

Registered: 2002-05-08
Posts: 40
Loc: Orange,California
If I try 4.12 do I have to replace the kxrpc service on the server also?
_________________________
Steve

Top
#33872 - 2002-12-04 04:54 PM Re: INGROUP problem
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Only if you support Windows 9x computers. During testing you won't need to do anything. Additionally, there's a batch file in the KiXtart distribution that enables you to remotely update the KiXtart RPC Server. Installing/updating the KiXtart RPC Server does not require a reboot of the server.

[ 04. December 2002, 17:21: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#33873 - 2002-12-04 04:58 PM Re: INGROUP problem
GRF Offline
Fresh Scripter

Registered: 2002-02-15
Posts: 45
Loc: Ohio
Maybe it doesn't like the R:. Try using S:.
_________________________
GF

Top
#33874 - 2002-12-04 05:07 PM Re: INGROUP problem
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
What are the associated error codes?
Try
code:
if ingroup('groupname')
use r: \delete
? 'Error '+@ERROR+' - '+@SERROR
use r: '\\server\share'
? 'Error '+@ERROR+' - '+@SERROR
endif

_________________________
There are two types of vessels, submarines and targets.

Top
#33875 - 2002-12-04 05:15 PM Re: INGROUP problem
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
steve, have you a problem of just checking the error?

I think I've before asked that too.
we can't keep on quessing for years, we need help from you too, please.

do try:
code:
if INGROUP("RealEC")
? "Member of RealEC group"
USE R: /delete /Persistent
USE R: "\\FS1\RealEC"
if @error
? "MAPPING ERROR: @error"
? "press any key to continue"
get $somekey
endif
else
? "not Member of RealEC group"

endif

_________________________
!

download KiXnet

Top
#33876 - 2002-12-04 05:18 PM Re: INGROUP problem
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
jens was faster [Wink]
_________________________
!

download KiXnet

Top
#33877 - 2002-12-04 05:19 PM Re: INGROUP problem
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Just a sec..

I think Jens may have hit the nail on the head.

quote:

Only if you support Windows 9x computers. During testing you won't need to do anything. Additionally, there's a batch file in the KiXtart distribution that enables you to remotely update the KiXtart RPC Server. Installing/updating the KiXtart RPC SErver does not require a reboot fo the server.

Is this 9x you are having trouble with?

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#33878 - 2002-12-04 05:21 PM Re: INGROUP problem
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
kent, yes I think so, but the ingroup does not need rpc... at least not in kix95
_________________________
!

download KiXnet

Top
#33879 - 2002-12-04 05:24 PM Re: INGROUP problem
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
To be honest, I've lost track of the problem after all those posts. The initial INGROUP problem sounds like a very basic problem. Ten minutes of checking the KiXtart distribution (file versions, etc.) and using a little test script should solve the problem, especially when using the @ERROR functions.

I can't help but wonder why Steve doesn't perform those very basic checks.
_________________________
There are two types of vessels, submarines and targets.

Top
#33880 - 2002-12-04 05:25 PM Re: INGROUP problem
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Jooel, I beg to differ. InGroup() is needed for Wintendos.

Back to KiX version. 3.61 is too old for AD so it makes sense to upgrade. Not to mentiopn the features and performance boost.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#33881 - 2002-12-04 05:32 PM Re: INGROUP problem
Steve M Offline
Fresh Scripter

Registered: 2002-05-08
Posts: 40
Loc: Orange,California
Looking at my netlogon directory the kx95.dll is version 3.60 and the kix I downloaded this morning 4.12 has kx95.dll version 4.1.0.0 the kx32.dll is the same verion 3.61.1.0 as I am running in my netlogon
Kix32.exe in my netlogon is 4.11.0.0 In conclusion the only files I need to replace on my netlogon would be the kix32.exe and kx95.dll am I correct assuming this?
_________________________
Steve

Top
#33882 - 2002-12-04 05:34 PM Re: INGROUP problem
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
According to Ruud, if you replace one you have to replace them all.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#33883 - 2002-12-04 05:36 PM Re: INGROUP problem
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
steve, you should also be sure that local machines have no different versions of those files.
_________________________
!

download KiXnet

Top
#33884 - 2002-12-04 05:37 PM Re: INGROUP problem
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
You must update the KiXtart RPC Server service if you want to use KiXtart 4.12 while supporting Windows 9x computers. Changes have been made to both the RPC service and the associated Windows 9x DLLs that require this update.

Additionally, use any of the LOGIN.BAT batch files that have been posted in other threads to ensure that all clients have up-to-date client files.

[ 04. December 2002, 17:39: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
Page 3 of 4 <1234>


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

Who's Online
0 registered and 533 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.074 seconds in which 0.027 seconds were spent on a total of 12 queries. Zlib compression enabled.

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