Resolve SID to ADSI Object

  • Thread starter Thread starter Michael A. Allen
  • Start date Start date
M

Michael A. Allen

First off, I apologize for the cross-posting, but I think
this question that I posed in windows.server.scripting is
better fitted to this forum:

Is this possible? I've tried and endless amount of
combinations that I thought should work, but nothing as of
yet.

One important thing to note, is that the accounts in which
I am getting this information for exists in another domain.

Specifically what I am trying to accomplish, is list the
users from within an Active Directory group. The problem
is that my group has linked accounts from a second domain,
and the only information that I seem able to get to is the
SID or GUID of that object.

I need to somehow resolve this SID or GUID into an actual
ADSI object so that I can get at the common name and other
attributes.

Anyone have anything that might help me along with this
problem? Robert Cohen was kind enough to show me a
conversation between himself and Richard Mueller -- which
I am afraid did not help me resolve the SID/GUID to the
actual ADSI object :(

In any case, one thing I did try was to use GetObject
("WinNT://SID=" & strTheSID) which seemed to have worked,
but I have no earthly clue what type of object that
returned me, all attempts at accessing any attributes
other than a "Name" attribute failed. So any insight on
that might be helpful as well.

Appreciate it guys, thank you.

Michael A. Allen
 
Back
Top