Retrieve user login history for a specific AD computer

I need to find out all the users who have logged in before to a specific AD computer.
I want to achieve this with PowerShell..
Ted WilsonAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Zaheer IqbalTechnical Assurance & ImplementationCommented:
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ted WilsonAuthor Commented:
@Zaheer thanks for you comment but I forgot to mention that I need to run the powershell as a normal domain user that is not a domain admin
0
Introducing the "443 Security Simplified" Podcast

This new podcast puts you inside the minds of leading white-hat hackers and security researchers. Hosts Marc Laliberte and Corey Nachreiner turn complex security concepts into easily understood and actionable insights on the latest cyber security headlines and trends.

Zaheer IqbalTechnical Assurance & ImplementationCommented:
can this be achieved by a scheduled task on that specific computer ?
Or done remotely.
Why does it need to run as domain user ?
0
Kevin StanushApplication DeveloperCommented:
A regular user won't have security access to the security log where this information is stored, and that assumes that you have previously had auditing turned on.  Auditing is not usually turned on, so if it isn't, this information isn't recorded anywhere.

If you really need this information for particular people, you can insert a few lines into a logon script that all users run that appends the logon information into a simple text file.   This is faster, and bypasses the event log security.
4
Ted WilsonAuthor Commented:
Thank you guys.
0
PberSolutions ArchitectCommented:
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I have recommended this question be closed as follows:

Split:
-- Ganesh Gurudu (https:#a42404247)
-- Kevin Stanush (https:#a42404277)
-- Zaheer Iqbal (https:#a42404191)


If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.

Pber
Experts-Exchange Cleanup Volunteer
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Powershell

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.