# ************************************************************
# Clear the EVENT LOGS
#
# **********************INSTRUCTIONS**************************
# STEP 1 *****************************************************
# RUN PowerShell as ADMINISTRATOR
# START ORB | type POWERSHELL | CTRL+SHIFT+ENTER key combo | ALT+Y keycombo
# ************************************************************
# STEP 2 *****************************************************
# COPY, starting with the first line that does NOT start with a #
# COPY, using CTRL+C, every line thru both EXIT statements
# PASTE into Powershell
# You PASTE by Right-clicking at the PowerShell Prompt
# (Ctrl+V does not work)
# ************************************************************
Get-WinEvent -ListLog * -Force | % { $_.logname;Wevtutil.exe cl $_.logname };Wevtutil.exe cl system
EXIT
EXIT
# ***************** NOTE - POWERSHELL VERSION*****************
# if you receive this error msg:
# Get-WinEvent: The system can not find the path specified
# you need to update your PowerShell
# you must be using Powershell 2.0 or later.
#
# To determine your Powershell version:
# Run PowerShell
# enter $host.version
# you should see at least:
# Major Minor Build Revision
# ----- ----- ----- --------
# 2 0 -1 -1
#
# If you do not see the above, update your Vista/Win 7.
# ************************************************************
# *************** NOTE - EXECUTION POLICY*********************
# If you haven't set the execution policy, you may need to:
# Run PowerShell
# enter Set-ExecutionPolicy -executionpolicy remotesigned
#
# ************************************************************