There is no easy way. ADSI is most likely the most efficient way without relying on external utilities. Somehow, you'll have to query the SM of the domain controller or in case of the local computer the local SAM remotely. That's what ADSI is for.

Additionally, you cannot access the CURRENT_USER registry of a user that is not logged on since that part of the registry is not loaded at that point.

Please provide us with the big picture of what you try to achieve.

[ 20. November 2002, 16:21: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.