Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 2.0 » Get-EventSubscriber

Get-EventSubscriber - Powershell 2.0 CmdLet

Microsoft Windows PowerShell is a command-line shell and scripting tool based on the Microsoft .NET Framework. It is designed for system administrators, engineers and developers to control and automate the administration of Windows and applications.

More than hundred command-line tools (so called "cmdlets") can be used to perform system administration tasks and Windows Management Instrumentation (WMI). These cmdlets are easy to use, with standard naming conventions and common parameters, and standard tools for piping, sorting, filtering, and formatting data and objects.

Get-EventSubscriber


Short description
Gets the event subscribers in the current session.

Syntax
Get-EventSubscriber [-SubscriptionId] <int> [[-Force]] [<CommonParameters>]

Get-EventSubscriber [[-SourceIdentifier] <string>] [[-Force]] [<CommonParameters>]

Description
The Get-EventSubscriber cmdlet gets the event subscribers in the current session. 

When you subscribe to an event by using a Register event cmdlet, an event subscriber is added to your Windows Power
Shell session, and the events to which you subscribed are added to your event queue whenever they are raised. To ca
ncel an event subscription, delete the event subscriber by using the Unregister-Event cmdlet.