Hi,

I'm looking for a way to display account information of a useraccount I specify in the domain. I probably need ADSI to do this?
The info I need would be the Fullname and the Comment, output like:

Account: jvdvlier
Fullname: Johan van der Vlier
Comment: Sales Department

I saw this script from Bryce, but couldn't get it to work, so can't say if it would (with adjustments) fit my needs...

code:

$domain = getobject("WinNT://@domain")
if @error <> 0
exit(1)
endif
for each $thing in $domain
if $thing.class = "USER"
? $thing.name
endif
next

Oh, I need to run this from a workstation, not on the server itself, and I'd like to go without using UserManager etc, so I can use the output for something else...

Environment = NT4 ...

_________________________
Regards, Jeroen. There are two ways to write error-free programs. Only the third one works.