Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 3.0 » Register-CimIndicationEvent

Register-CimIndicationEvent - Powershell 3.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »

Register-CimIndicationEvent

Short description
Subscribes to indications using a filter expression or a query expression.

Syntax
Register-CimIndicationEvent [-ClassName] <String> [[-SourceIdentifier] <String>] [[-Action] <ScriptBlock>] [-ComputerNa
me <String>] [-Forward] [-MessageData <PSObject>] [-Namespace <String>] [-OperationTimeoutSec <UInt32>] [-SupportEvent]
 [<CommonParameters>]
Register-CimIndicationEvent [-Query] <String> [[-SourceIdentifier] <String>] [[-Action] <ScriptBlock>] [-Forward] [-Mes
sageData <PSObject>] [-Namespace <String>] [-OperationTimeoutSec <UInt32>] [-QueryDialect <String>] [-SupportEvent] -Ci
mSession <CimSession> [<CommonParameters>]
Register-CimIndicationEvent [-ClassName] <String> [[-SourceIdentifier] <String>] [[-Action] <ScriptBlock>] [-Forward] [
-MessageData <PSObject>] [-Namespace <String>] [-OperationTimeoutSec <UInt32>] [-SupportEvent] -CimSession <CimSession>
 [<CommonParameters>]
Register-CimIndicationEvent [-Query] <String> [[-SourceIdentifier] <String>] [[-Action] <ScriptBlock>] [-ComputerName <
String>] [-Forward] [-MessageData <PSObject>] [-Namespace <String>] [-OperationTimeoutSec <UInt32>] [-QueryDialect <Str
ing>] [-SupportEvent] [<CommonParameters>]





Description
The Register-CimIndicationEvent cmdlet subscribes to indications using an indication class name or a query expression.


Use the SourceIdentifier parameter give a name to the subscription.


This cmdlet returns a PS EventSubscription object. You can use this object to cancel the subscription.