February 2019
Intermediate to advanced
626 pages
15h 51m
English
The Get-EventSubscriber command may be used to view any existing event handlers created using Register-ObjectEvent. For example, Get-EventSubscriber will display the subscribers created for FileSystemWatcher:
PS> Get-EventSubscriberSubscriptionId : 4SourceObject : System.IO.FileSystemWatcherEventName : ChangedSourceIdentifier : 6516aebc-d191-44b5-a38f-60314f606102Action :HandlerDelegate :SupportEvent : FalseForwardEvent : FalseSubscriptionId : 5SourceObject : System.IO.FileSystemWatcherEventName : CreatedSourceIdentifier : ff0784dc-1f0f-4214-b5e7-5d5516eaa13eAction :HandlerDelegate :SupportEvent : FalseForwardEvent : False
If the subscribers are no longer required, they can be removed ...
Read now
Unlock full access