Solved

PowerShell script to identify users

Posted on 2014-07-18
4
225 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

Do email signature updates give you a headache?

Constantly trying to correctly format email signatures? Spending all of your time at every user’s desk to make updates? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This script can help you clean up your user profile database by comparing profiles to Active Directory users in a particular OU, and removing the profiles that don't match.
A brief introduction to what I consider to be the best editor for PowerShell.
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

920 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

15 Experts available now in Live!

Get 1:1 Help Now