[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Get-WinEvent Search for specific text

Posted on 2012-04-02
1
Medium Priority
?
968 Views
Last Modified: 2012-04-03
i'm still very new to powershell but wanted to know if there is a why i can use the get-winevent cmdlet to search for a keyword or phrase within the event logs of a remotee 2003 / 2008 server?

For example seaerch all events on a remote server(s) that had the word "userabc" in the body of the event id..
0
Comment
Question by:compdigit44
1 Comment
 
LVL 17

Accepted Solution

by:
Anuroopsundd earned 2000 total points
ID: 37798776
get-eventlog -logname "Windows PowerShell" -message "*userabc*" -computername Server01, Server02
0

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

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

In this post, I will showcase the steps for how to create groups in Office 365. Office 365 groups allow for ease of flexibility and collaboration between staff members.
Transferring FSMO roles is done when an admin wants to split roles between certain Domain Controllers or the Domain Controller holding the Roles has been forcefully demoted using dcpromo / forceremoval
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Loops Section Overview

829 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