Resolve SID to ADSI Object

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top