Check member of NT group

Check member of NT group

am 14.03.2007 17:20:36 von tony wong

i can use Request.ServerVariables to check the login user.

is it possible to check whether the login user is the member of the NT
security group?

it is because i wish to create a dynamic banner according to respective NT
security group.

Thanks a lot.

Tony

Re: Check member of NT group

am 15.03.2007 13:43:46 von Dave Anderson

"Tony WONG" wrote:
>i can use Request.ServerVariables to check the login user.
>
> is it possible to check whether the login user is the member
> of the NT security group?

Yes, and the Script Repository has all of the details:
http://www.microsoft.com/technet/scriptcenter/scripts/defaul t.mspx

For example, you can list all members of a group:
http://www.microsoft.com/technet/scriptcenter/scripts/ad/gro ups/adgpvb13.mspx

Or, you can list the groups a user belongs to:
http://www.microsoft.com/technet/scriptcenter/scripts/ad/gro ups/adgpvb17.mspx



> it is because i wish to create a dynamic banner according to
> respective NT security group.

What if a user belongs to more than one group?




--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.