Filtering Event Log Events with PowerShell

Summary: Ed Wilson, Microsoft Scripting Guy, talks about filtering event log events with the Get-WinEvent cmdlet.  Hey, Scripting Guy! I try to use the Get-WinEvent cmdlet to search event logs, but it is pretty hard to do. Also, I don’t see the nice switches that I had with Get-EventLog, so I don’t see why I…


PowerTip: Get File System errors on NTFS Volumes with PowerShell

Summary: Use Windows PowerShell to get file system errors on all NTFS volumes.  How can I use Windows PowerShell to check your NTFS volumes for file system errors?  On Windows 10 with Windows PowerShell 5.0, use the Get-Volume cmdlet to retrieve all volumes and           pipe the output to the Get-VolumeCorruptionCount cmdlet, for example: Get-Volume |…


Easy Parsing of Messages with PowerShell

Summary: Ed Wilson, Microsoft Scripting Guy, talks about parsing event message strings with Windows PowerShell.  Hey, Scripting Guy! I have seen people using different tools to find stuff in strings in Windows PowerShell, but it always looks complicated. Why is that? I thought Windows PowerShell was supposed to make things easier, but this looks really…


PowerTip: Produce List of Unique Processes with PowerShell

Summary: Learn how to use Windows PowerShell to filter out duplicate process names.  How can I use Windows PowerShell to easily get a unique list of processes running on my local computer?  Use Get-Process to retrieve the processes and pipe the output to Get-Unique: Get-Process | Get-Unique


Dude It’s a String—The Video

Summary: Ed Wilson, Microsoft Scripting Guy, presents a video to talk about working with strings in Windows PowerShell. Microsoft Scripting Guy, Ed Wilson, is here. Today I present a video where I talk about working with strings—in particular empty or null strings. I talk about the differences between empty, null, and white space in strings…


PowerTip: Use PowerShell to Display Number of Minutes in a Day

Summary: Use Windows PowerShell to display the number of minutes in a day.  How can I use Windows PowerShell to easily display how many minutes are in a day?  Create a timespan equal to one day, and then select the total minutes from it: (New-TimeSpan -Days 1).totalminutes


Use PowerShell to Parse Network Trace Logs—The Video

Summary: Ed Wilson, Microsoft Scripting Guy, presents a video to show how to use Windows PowerShell to parse network trace logs. Microsoft Scripting Guy, Ed Wilson, is here. Today I am presenting a video where I show how to use Windows PowerShell to parse network traces. The steps I show are common commands that will…


Use PowerShell to Collect Network Traces—The Video

Summary: Ed Wilson, Microsoft Scripting Guy, presents a video that shows how to use Windows PowerShell to collect network traces. Microsoft Scripting Guy, Ed Wilson, is here. Today I’m present a video where I show how to use Windows PowerShell to collect network traces. The steps I show are common commands that will normally be…


Now Available! Windows PowerShell Step by Step, Third Edition

We’re pleased to announce the availability of Windows PowerShell Step by Step, Third Edition (ISBN 9780735675117), by Ed Wilson. Purchase from these online retailers: Microsoft Press Store Amazon.com Barnes & Noble Independent booksellers – Shop local Your hands-on guide to Windows PowerShell scripting fundamentals Expand your expertise—and teach yourself the fundamentals of Windows PowerShell scripting,…