Eventlog - how remove a custom source with PowerShell

  • Thread starter Thread starter clever4ever
  • Start date Start date
C

clever4ever

Guest
Hi all

How can I remove a custom Eventlog source with PowerShell?

I created a source with the statement

New-Eventlog-LognameApplication-Source"MyCompany"


Then I delete the source "successfully" with

Remove-EventLog-Source"MyCompany"

When I then check the sources, it is still listed as available

Get-EventLog-LogNameApplication|Select-ObjectSource-Unique


Can anybody tell me why this deleted source is still listed?



Thanks for any answer,

Juerg

More...
 
Back
Top