Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 83
  • Last Modified:

Retrieve Lastlogged on user to a computer

I need a powershell command that can retrieve the last logged on user name to a computer.
this is Windows domain.
I found Powershell commands that retrieve current logged on user, but not the last logged on user if the computer has no one logged on to it at the current time.

Any Help?

Thank you
2 Solutions
Praveen Kumar BonalaProgrammer AnalystCommented:
here is a step by step solution for your requirement

jskfanAuthor Commented:
Thank you

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now