Solved

PowerShell script to identify users

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

830 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