Solved

PowerShell script to identify users

Posted on 2014-07-18
4
224 Views
Last Modified: 2014-07-24
Server 2003, PowerShell v1

Looking for a PowerShell script to identify 'users' that are in the event log for Security. I want to parse out services, computers, etc.
0
Comment
Question by:xmouser
  • 2
  • 2
4 Comments
 
LVL 13

Accepted Solution

by:
duncanb7 earned 500 total points
ID: 40207127
Try ths for  accountname , Peter
Get-EventLog –log  Security | Where {$_.message –match "Account Name:Peter”}
and  Take a look for Powershell Get-EventLog manual from Microsoft at
http://technet.microsoft.com/en-us/library/hh849834.aspx

Hope understand your question completely.If not, please point it out

Duncan
0
 

Author Comment

by:xmouser
ID: 40208695
I'll check today, thanks.
0
 

Author Comment

by:xmouser
ID: 40208698
My apologies, I need a PS that will identify 'users' (people) not a specific person. I'm trying to track log ins and I want to look for new names.
0
 
LVL 13

Expert Comment

by:duncanb7
ID: 40217424
Thanks for your points

Have a nice day

Duncan
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
The viewer will learn how to count occurrences of each item in an array.
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now