You are currently viewing PowerShell Clear-EventLog Cmdlet

PowerShell Clear-EventLog Cmdlet

PowerShell Clear-EventLog Cmdlet

Hello Everyone

Welcome to CloudAffaire and this is Debjeet.

In the last blog post, we have discussed Limit-EventLog cmdlet in PowerShell.

https://cloudaffaire.com/powershell-limit-eventlog-cmdlet/

In this blog post, we will discuss Clear-EventLog cmdlet in PowerShell. You can use Clear-EventLog cmdlet to clear or delete events from an event log. You need to have administrator access to order to change an event log property. You can use Clear-EventLog cmdlet to change event log property of a local or remote computer.

Clear-EventLog Cmdlet Syntax:

Clear-EventLog Cmdlet Argument List:

  • ComputerName: Specifies remote computers. The default is the local computer.
  • Confirm: Prompts you for confirmation before running the cmdlet.
  • LogName: Specifies the event logs. Enter the log name (the value of the Log property; not the LogDisplayName) of one or more event logs, separated by commas.
  • WhatIf: Shows what would happen if the cmdlet runs. The cmdlet is not run.

PowerShell Clear-EventLog Cmdlet:

Hope you have enjoyed this article. In the next blog post, we will discuss Remove-EventLog CmdLet in PowerShell.

To Set more details on PowerShell, kindly follow below official documentation

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about?view=powershell-5.1

 

Leave a Reply