windows-server-2008 – 如何删除事件源窗口2008

前端之家收集整理的这篇文章主要介绍了windows-server-2008 – 如何删除事件源窗口2008前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我想删除 Windows 2008中的事件源.

我不想删除日志事件,只删除源.

我怎么做?

我找不到任何执行此操作的PowerShell命令.

PS > gcm *EventLog -CommandType cmdlet
CommandType     Name                 Definition
-----------              ----                                       ----------
Cmdlet                 Clear-EventLog                 Clear-EventLog [-LogName] <String[]> [[-Computer...
Cmdlet                 Get-EventLog                   Get-EventLog [-LogName] <String> [[-InstanceId] ...
Cmdlet                 Limit-EventLog                 Limit-EventLog [-LogName] <String[]> [-ComputerN...
Cmdlet                 New-EventLog                 New-EventLog [-LogName] <String> [-Source] <Stri...
Cmdlet                 Remove-EventLog          Remove-EventLog [-LogName] <String[]> [[-Compute...
Cmdlet                 Show-EventLog               Show-EventLog [[-ComputerName] <String>] [-Verbo...
Cmdlet                 Write-EventLog               Write-EventLog [-LogName] <String> [-Source] <St...
您可以使用 Remove-EventLog取消注册一个或多个事件源:
Remove-EventLog -Source "My Custom Source"
Remove-EventLog -Source "ASource","Another one","CustomApp123"

猜你在找的Windows相关文章