New-WmiEventSubscription
SYNOPSIS
{{ Fill in the Synopsis }}
SYNTAX
ComputerByValueSet
New-WmiEventSubscription [-ComputerName <String[]>] [-Credential <PSCredential>] -Consumer <CimInstance>
-Filter <CimInstance> [<CommonParameters>]
ComputerByNameSet
New-WmiEventSubscription [-ComputerName <String[]>] [-Credential <PSCredential>] -FilterName <String>
-ConsumerType <String> -ConsumerName <String> [<CommonParameters>]
SessionByValueSet
New-WmiEventSubscription -CimSession <CimSession[]> -Consumer <CimInstance> -Filter <CimInstance>
[<CommonParameters>]
SessionByNameSet
New-WmiEventSubscription -CimSession <CimSession[]> -FilterName <String> -ConsumerType <String>
-ConsumerName <String> [<CommonParameters>]
DESCRIPTION
{{ Fill in the Description }}
EXAMPLES
Example 1
PS C:\> {{ Add example code here }}
{{ Add example description here }}
PARAMETERS
-CimSession
{{ Fill CimSession Description }}
Type: Microsoft.Management.Infrastructure.CimSession[]
Parameter Sets: SessionByValueSet, SessionByNameSet
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ComputerName
{{ Fill ComputerName Description }}
Type: System.String[]
Parameter Sets: ComputerByValueSet, ComputerByNameSet
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Consumer
{{ Fill Consumer Description }}
Type: Microsoft.Management.Infrastructure.CimInstance
Parameter Sets: ComputerByValueSet, SessionByValueSet
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ConsumerName
{{ Fill ConsumerName Description }}
Type: System.String
Parameter Sets: ComputerByNameSet, SessionByNameSet
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ConsumerType
{{ Fill ConsumerType Description }}
Type: System.String
Parameter Sets: ComputerByNameSet, SessionByNameSet
Aliases:
Accepted values: ActiveScriptEventConsumer, CommandLineEventConsumer, LogFileEventConsumer, NtEventLogEventConsumer, SMTPEventConsumer
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Credential
{{ Fill Credential Description }}
Type: System.Management.Automation.PSCredential
Parameter Sets: ComputerByValueSet, ComputerByNameSet
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Filter
{{ Fill Filter Description }}
Type: Microsoft.Management.Infrastructure.CimInstance
Parameter Sets: ComputerByValueSet, SessionByValueSet
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-FilterName
{{ Fill FilterName Description }}
Type: System.String
Parameter Sets: ComputerByNameSet, SessionByNameSet
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.