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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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:

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
Check Out How Miercom Evaluates Wi-Fi Security!

It's not just about Wi-Fi connectivity anymore. A wireless security breach can cost your business large amounts of time, trouble, and expense. Plus, hear first-hand from Miercom on how WatchGuard's Wi-Fi security stacks up against the competition plus a LIVE demo!

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 ?
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.
Ted WilsonAuthor Commented:
Thank you guys.
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:

-- 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.

Experts-Exchange Cleanup Volunteer
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

From novice to tech pro — start learning today.