attiahia,
The script you ripped is intended as an admin script. It parses through the SAM and returns all account information. I have tested it and it works. I don't know why it would only return a few accounts unless it is not expandining the @domain macro and therefor parsing the local PC. Also, '$usr ="attiahXm"' serves no purpose.
If you want to enumerate just the user in the logon, you need something like this:

$usr = GetObject("WinNT://"+@LDOMAIN+"/"+@UserID+",user")
$AccountExpirationDate = $usr.AccountExpirationDate
? @UserID+" - AccountExpirationDate = "+$AccountExpirationDate
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.