Page 1 of 1 1
Topic Options
#27504 - 2002-08-22 02:29 PM Differences between Kix and Vbs (NT Group)
kachte Offline
Fresh Scripter

Registered: 2002-06-10
Posts: 12
Hi,
I want to enumerates all groups of which the current user is a member.

Script

$Index = 0
DO
$Group = ENUMGROUP($Index)
$Index=$Index+1
? $Group
UNTIL Len($Group) = 0

The result is, that all groups are not announced.
With a Vbs Script I get all groups.

dsRoot = "WinNT://dom/user"
set wshShell = Wscript.CreateObject("Wscript.Shell")
set dsObj = GetObject(dsRoot)
For Each Prop In dsobj.groups
wshshell.popup Prop.Name
Next

Help!!

Thanks
Kachte

Top
#27505 - 2002-08-22 02:40 PM Re: Differences between Kix and Vbs (NT Group)
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
kachte, so what are the groups not coming up?

there should be no difference that I know of...
_________________________
!

download KiXnet

Top
#27506 - 2002-08-22 02:45 PM Re: Differences between Kix and Vbs (NT Group)
kachte Offline
Fresh Scripter

Registered: 2002-06-10
Posts: 12
Hi,

i only get 8 NT groups.
But i have to get 12 groups.

Kachte

Top
#27507 - 2002-08-22 03:19 PM Re: Differences between Kix and Vbs (NT Group)
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Is it possible that some groups are local groups or groups on member servers?

Then you will need to use EnumLocalGroup()
_________________________
There are two types of vessels, submarines and targets.

Top
#27508 - 2002-08-22 03:36 PM Re: Differences between Kix and Vbs (NT Group)
kachte Offline
Fresh Scripter

Registered: 2002-06-10
Posts: 12
No,
all groups which I want to enumerate are globale groups.

Top
#27509 - 2002-08-22 03:36 PM Re: Differences between Kix and Vbs (NT Group)
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
that is not fully true.
I get all my local groups with enumgroup()

anyway, if you want to get groups from member server, then it's different.
_________________________
!

download KiXnet

Top
#27510 - 2002-08-22 03:39 PM Re: Differences between Kix and Vbs (NT Group)
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
so, is there similarity, something same in those groups?

when you mean global, you mean the groups not seen are of the form(?):
domain\groupname
_________________________
!

download KiXnet

Top
#27511 - 2002-08-23 11:41 AM Re: Differences between Kix and Vbs (NT Group)
kachte Offline
Fresh Scripter

Registered: 2002-06-10
Posts: 12
Sorry,

after a logoff/on - everything seems to be OK.

Kachte

Top
#27512 - 2002-08-23 03:45 PM Re: Differences between Kix and Vbs (NT Group)
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
You might need to refresh the token cache, please read the KiXtart Manual about 'Group Membership Information'
_________________________
There are two types of vessels, submarines and targets.

Top
#27513 - 2002-08-23 06:51 PM Re: Differences between Kix and Vbs (NT Group)
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
What are the lengths of the group names that are not shown?

[ 23. August 2002, 18:51: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
Page 1 of 1 1


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

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

Generated in 0.059 seconds in which 0.024 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