Could anyone tell me how I can write a VB Script or Batch FIle to display the username and last log-in time for each user logging onto a local machine - regardless of group.
This will give you something to start on - if your users are Domain accounts then this will only tell you the last time they logged onto the Domain not a particular PC. If they are local accounts it will work perfectly just supply the ComputerName for strDomain
I get an error that the object doesn't support the property or method "LastLogin" ? Because I want this to work on a local machine only, can I leave out the domain info?
That works now on the domain at work. Is it possible to get this to work on a LOCAL machine with NO domain. Surely the registry keeps a record of logon tomes somewhere?
What is the OS?
Have you tried the script using the Computer Name as the Domain?
Windows 2000 lists the Computer Name as the Domain in its "User and Passwords" component in control panel, so that might work.
I'm not sure with 95/98/Me machines, probably not.
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.