I have an NT4.0 domain. I am trying to find out what the last login date is for all my users in user manager. I cannot find this date. Does anybody know how to get it?
Try it on multiple accounts...if you are not already. See if you get data on any of them. Do you get other properties if you query them(ie - user.fullname, user.name, etc.)
Try making the query more specific:
Set user = GetObject("WinNT://<domain>/<username>,user"
wscript.echo user.get("lastlogin"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.