PowerShell Script for Clearing Windows Event Logs
Sure, you can just type "wevtutil el | % { wevtutil cl $_ }" whenever you feel like it, but how fun is that?!
There are 32 entries for the tag Toolbox.
Sure, you can just type "wevtutil el | % { wevtutil cl $_ }" whenever you feel like it, but how fun is that?!
Even though it doesn't take long to add a folder to %Path% by clicking through Windows, I prefer to do this using a little PowerShell instead.
Here's a set of scripts to make it easier to view the items in the "BackConnectionHostNames" registry key, as well as add and remove hostnames.
Here's a set of scripts to make it easier to view the hostname mappings in the hosts file, as well as add and remove hostnames.
Here's a pair of PowerShell scripts for quickly setting and verifying the MaxPatchCacheSize registry setting.
Here's a little PowerShell script I whipped up to import the TechnologyToolbox.com log files into a SQL Server database for some "quick and dirty" analysis.
Here's a useful script for those, like me, that use SysPrep'ed images to create new virtual machines and also leverage Windows Server Update Services (WSUS) to keep machines up-to-date with the latest patches. Reset WSUS for SysPrep Image.cmd ...
Nearly three years ago, I wrote a post that described the BackedUp and NotBackedUp folders I use on almost every computer I ever log on to (my laptop, desktop, a handful of servers, and more than a dozen VMs). I also showed how I created taskbar shortcuts...
Earlier this week , I shared a script that I frequently use in my development environments to clear the event logs (for example, whenever I want to verify that one of my VMs "boots clean" -- meaning without any errors or warnings). Note that prior to...
As I was writing my first post earlier this morning , I wondered if I had previously shared the script I use to quickly clear the event logs on a server (but saving them first -- just in case I need to go back and retrieve something from the "archive...