Missing Users in "Group Listing"...
- From: "William Robertson" <robertson.william@xxxxxxxxxxxxxx>
- Date: Tue, 14 Jun 2005 18:44:16 +0200
Hi there
I have a very simple script which accepts the name of a User Group, and then
lists the names of all users who are a member thereof... An excerpt of this
script is listed below...
'******************************************************
ADGroup="CN=DialupUsers, OU=Servers"
ADDomain="DC=domainname,DC=com"
Set objGroup = GetObject ("LDAP://"&ADGroup&","&ADDomain)
For each objMember in objGroup.Members
WScript.Echo objMember.sAMAccountName & "," & objMember.sAMAccountName &
"," & objMember.Name
Next
'******************************************************
The problem that I have is that any User Account that has the ADGroup in
question as it's Primary Group, does not get included in my report. Case in
point:
I have a few "contractor" logons of people who dialup into our organisation
for support purposes. These user accounts typically are not members of any
Active Directory groups, apart from my "DialupUsers" group which is used to
authorise these support users on my IAS server. These user accounts are only
a member of 1 group, thus the "DialupUsers" group is set as the "Primary
Group" for these users.
I have managed to duplicate this as follows:
- Set the Primary Group of a user account to "Group1"
- Run the above script, and the user account in question will not be
reported in the results
- Take the same user account above, add them to another group, set the
Primary group to this "Group2", and run the above script again.
- The user i question will now be returned...
Anyone perhaps got an idea on how to get past this??
Thanks
William R.
.
- Follow-Ups:
- Re: Missing Users in "Group Listing"...
- From: Richard Mueller [MVP]
- Re: Missing Users in "Group Listing"...
- Prev by Date: Re: Check Force User to Change Password Checkbox
- Next by Date: Re: LastLogon
- Previous by thread: Check Force User to Change Password Checkbox
- Next by thread: Re: Missing Users in "Group Listing"...
- Index(es):
Relevant Pages
|