Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've used this Serverfault Article in order to add additional event logs for some webservices to the local group policy on my interfaces server. For 2 objects i added, i had a mistype and it created 2 logs (check the image) which are unusable and i would like to delete them as it is a production server. Is that possible? enter image description here

Thanks Itai

share|improve this question

1 Answer 1

If you have access to PowerShell 2.0, you can use the Remove-EventLog cmdlet to delete the 2 logs you don't want any more.

Remove-EventLog -LogName incorrectlogname -ComputerName servername
share|improve this answer
    
I have access to powershell 2.0 on my computer but the server which holds the log i want to remove doesn't have powershell at all, will it still be possible to do it? –  Itai Ganot Mar 1 '12 at 14:23
    
You can run from your local computer and it should remove the logs on the server no problem. –  Christopher Mar 1 '12 at 16:09
    
Where do i get the log name? is that the same as the policy name? I tried it with the policy name and with the name from the sceregvl.inf file but it keeps saying it's unable to find a log with that name on the server. by the way, the log i want to remove is a duplicate which i created with the wrong path to the registry, if for example we're talking about the first red circle i marked there, if you look 1 line above you'll see it's the same log, one is operating correctly (and i need him) and the one circled is a corrupt duplicate which i'd like to remove –  Itai Ganot Mar 1 '12 at 16:33

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.