for basic, it's matter of listing the accounts with net user /domain, parsing the file and querying the info from net user...

then there is also a wmi way, not sure, but there might be already UDF for this...
well, some code anyway is on the board.
_________________________
!

download KiXnet