GET DOMAIN MEMBERSHIP

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello. I'm looking for a way to check and see if a user is a member of a
particular domain group. I have the code to enumerate the current Windows
user, but I don't know how to check it against a domain group.

Thanks.
 
You'll probably find something here.

http://www.rlmueller.net/products.htm

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| Hello. I'm looking for a way to check and see if a user is a member of a
| particular domain group. I have the code to enumerate the current Windows
| user, but I don't know how to check it against a domain group.
|
| Thanks.
 
Thanks Dave. I don't know to port these over to VBA though, and I believe
there are certain calls that I need to make to system files or otherwise to
get this to work in access. Any help in that direction would be great.
 
Richard's site has VBScript solutions. You should be able to copy them
directly into VBA without any change necessary.

VBScript doesn't have variable typing: everything is a variant. Fortunately,
in VBA when you declare something as

Dim MyVariable

that automatically declares it as a variant.

--
Doug Steele, Microsoft Access MVP

(no private e-mails, please)


Dan said:
Thanks Dave. I don't know to port these over to VBA though, and I believe
there are certain calls that I need to make to system files or otherwise
to
get this to work in access. Any help in that direction would be great.

Dave Patrick said:
You'll probably find something here.

http://www.rlmueller.net/products.htm

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| Hello. I'm looking for a way to check and see if a user is a member of
a
| particular domain group. I have the code to enumerate the current
Windows
| user, but I don't know how to check it against a domain group.
|
| Thanks.
 
This script may do what you want. These are VBScripts and as such shouldn't
need any special references.

http://www.microsoft.com/technet/scriptcenter/scripts/ad/groups/adgpvb22.mspx

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| Thanks Dave. I don't know to port these over to VBA though, and I believe
| there are certain calls that I need to make to system files or otherwise
to
| get this to work in access. Any help in that direction would be great.
 
Back
Top