我想删除
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"