Scripting Blog [archived]

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

Use PowerShell to Clear All Logs

Summary: Learn how to use Windows PowerShell to check disk space used by logs, and to clear those logs to reclaim space.   Microsoft Scripting Guy Ed Wilson here. One of the things I found as I was researching ways to enable and to disable the ETW trace logs is that a seemingly large number of people wanted a way to clear out all the logs...

Automatically Enable and Disable Trace Logs Using PowerShell

Summary: Use Windows PowerShell to automatically enable and disable trace logs.   (image) Hey, Scripting Guy! Your articles have been right on target—they hit me where I live. I am wondering if I could actually automate some of this? Suppose I am trying to install software using WMI, and I would like to see the log entries you ...

Use PowerShell to Troubleshoot Software Installation

Summary: Use Windows PowerShell to troubleshoot software installation.   (image) Hey, Scripting Guy! I am having a problem troubleshooting the installation of an MSI package. I am using Group Policy to deploy the MSI package, and on some computers, it seems to work, but on other computers it fails. After having read your most recent ...

Use Date Types to Filter Event Trace Logs in PowerShell

Summary: Learn how to use date types to filter event trace logs in Windows PowerShell.   (image) Hey, Scripting Guy! I am wondering, oh great scripting master: can I use Windows PowerShell to parse an ETW log file? —JM   (image) Hello JM, Microsoft Scripting Guy Ed Wilson here. It is “oh dark thirty” in the Piedmont...