theniteowl
Programmer
Hi All,
I use this code to look up a logon ID and show the groups it belongs to.
Does anyone have a way to list out the IDs that belong to a specific group?
At my age I still learn something new every day, but I forget two others.
I use this code to look up a logon ID and show the groups it belongs to.
Code:
strUsername="DOMAIN/ID"
set adsUser = getobject("WinNT://" & strUsername)
for each group in adsUser.groups
GrpList = GrpList & lcase(trim(group.name)) & vbcrlf
next
msgbox GrpList
Does anyone have a way to list out the IDs that belong to a specific group?
At my age I still learn something new every day, but I forget two others.