Deleting Event Logs

Working with event logs has become a lot easier in PowerShell v.2, and you have seen how you create and maintain your own logs. So, if you'd like to get rid of an event log, use Remove-Eventlog. But wait: this cmdlet removes any event log you specify, including pre-existing system logs. You should be careful what you delete because it cannot be undone. You will need Admin privileges to safeguard users.

Remove-EventLog 'Client Login Scripts'

Twitter This Tip! ReTweet this Tip!


Posted Sep 30 2009, 08:00 AM by ps1
Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.