Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

Use PowerShell to Parse Saved Event Logs for Errors

  Summary: Simplify Windows auditing and monitoring by using Windows PowerShell to parse archived event logs for errors. (image) Hey, Scripting Guy! I have been using a scheduled job and a Windows PowerShell script to archive our event logs to .evt files. When I need to check something, I need to import the .evtx file in to Event ...

Use PowerShell Cmdlet to Filter Event Log for Easy Parsing

  Summary: Learn how to use the Get-WinEvent Windows PowerShell cmdlet to filter the event log prior to parsing it. (image) Hey, Scripting Guy! I am confused. I have enjoyed using the Get-EventLog Windows PowerShell cmdlet. It is fast, and easy to use. However, I do not always like the way it seems to return all the records from a remote...

Simplify Importing PowerShell Command History

Summary: Use a custom Windows PowerShell function to simplify importing command history into the current environment. Microsoft Scripting Guy Ed Wilson here, well it has been a fun week. I got to thaw out in Florida after my presentation to SQL Saturday in Tampa. I made some new friends on Twitter, Facebook, and Linked In. I had several ...

Use the Export-History PowerShell Function to Save Commands

  Summary: Use the Export-History Windows PowerShell function to simplify saving command history. Microsoft Scripting Guy Ed Wilson here. One of the things I was thinking about when I was writing the article this week about the History cmdlets was that I wish it were a bit easier to export my history. This gave me an idea: Why don’t I...
Comments are closed.0 0