Remove-Event - PowerShell


 

Deletes events from the event queue. (Remove-Event)

   

# NAME
Remove-Event

# SYNOPSIS
Deletes events from the event queue.

# SYNTAX
Remove-Event [-EventIdentifier] <int> [-Confirm] [-WhatIf] [<CommonParameters>]

Remove-Event [-SourceIdentifier] <string> [-Confirm] [-WhatIf] [<CommonParameters>]

# DESCRIPTION
The Remove-Event cmdlet deletes events from the event queue in the current session.

This cmdlet deletes only the events currently in the queue. To cancel event registrations or unsubscribe, use the Unregister-Event cmdlet.

# PARAMETERS
-EventIdentifier <int>
Deletes only the event with the specified event identifier. An EventIdentifier or SourceIdentifier parameter is required in every command.

Required? true
Position? 1
Default value None
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-SourceIdentifier <string>
Deletes only the events with the specified source identifier. Wildcards are not permitted. An EventIdentifier or SourceIdentifier parameter is required in every command.

Required? true
Position? 1
Default value None
Accept pipeline input? false
Accept wildcard characters? false

-Confirm [<SwitchParameter>]
Prompts you for confirmation before executing the command.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WhatIf [<SwitchParameter>]
Describes what would happen if you executed the command without actually executing the command.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

# INPUTS
System.Management.Automation.PSEventArgs
You can pipe events from Get-Event to Remove-Event.

# OUTPUTS
None
The cmdlet does not generate any output.

# NOTES

Events, event subscriptions, and the event queue exist only in the current session. If you close the current session, the event queue is discarded and the event subscription is canceled.

# EXAMPLE 1

C:\PS>remove-event -sourceIdentifier "ProcessStarted"

# Description
-----------
This command deletes events with a source identifier of "Process Started" from the event queue.

# EXAMPLE 2

C:\PS>remove-event -eventIdentifier 30

# Description
-----------
This command deletes the event with an event ID of 30 from the event queue.

# EXAMPLE 3

C:\PS>get-event | remove-event

# Description
-----------
This command deletes all events from the event queue.

RELATED LINKS
Online version: http://go.microsoft.com/fwlink/?LinkID=135247
Register-ObjectEvent
Register-EngineEvent
Register-WmiEvent
Unregister-Event
Get-Event
New-Event
Remove-Event
Wait-Event

C:\Windows>powershell get-help Get-EventSubscriber -full

ColorConsole [Version 1.7.1000] PowerShell 2.0-Export
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2014 Microsoft Corporation.

OS: Windows 10, 8.1, 8, 7, Vista / Windows Server 2016, 2012, 2008
»»»» ColorConsole








Windows-10





Windows-10

... facebook.de
... Windows-10 FAQ
... Windows-10 Info


Become a Sponsor
... Your button here?





PowerShell: Deletes events from the event queue.

HTTP: ... PS_Windows/en/Remove-Event.htm
0.265
10209

Disable auto sleep mode on windows 10 tablet PC, how to?

 /

How do I set sleep mode in windows 10?

 /

Change Windows 10 update settings, quick fix!

 /

How long does it take 35 times to overwrite files and random renaming?

 /

Add directory with subdirectory and files to customize the timestamp!

 /

No file share selected, what can I do?

 /

Modify the size of the icons in the task bar of Windows 8.1 and 10!

 /

Wie kann ich FTP-Ordner öffnen/ durchsuchen mit Q-DIR? Unterstützen Sie SFTP?

 /

Bin bei Facebook.de Mitglied und ich frage mich, ob meine Privatsphäre bei Facebook.de gewährleistet ist?

 /

Windows 10 Home lokale Benutzer und Gruppen fehlen, warum?

 /

TouchWiz-Start hoher Akkuverbrauch auf meinem Handy (Smart-Phone)?

 /

Eigene Dateien auf Laufwerk (D) bei Windows-XP!

 /