I'm sorry if I'm not up to speed, I'm getting a late start to this thread...but why are we using the piped results of 'net user /domain' when you can do it from ADSI using filters? If I'm correct, this isn't being run from loginscript, but is a service script (correct me if I'm wrong).

If so, then...

code:
$user=getobject("WinNT://@domain")
$user.filter="User",""
for each $user in $user
? $user.name " " $user.PasswordExpirationDate
next

...will enumerate through all of the user accounts on the scpecified domain.

[ 02 August 2002, 20:03: Message edited by: Chris S. ]