New-ActiveScriptEventConsumer
SYNOPSIS
SYNTAX
ScriptTextByComputerName
New-ActiveScriptEventConsumer [-ComputerName <String[]>] [-Credential <PSCredential>] -Name <String>
[-ThrottleLimit <Int32>] [-KillTimeout <UInt32>] -ScriptingEngine <String> -ScriptText <String>
[<CommonParameters>]
FileNameByComputerName
New-ActiveScriptEventConsumer [-ComputerName <String[]>] [-Credential <PSCredential>] -Name <String>
[-ThrottleLimit <Int32>] [-KillTimeout <UInt32>] -ScriptingEngine <String> -ScriptFileName <String>
[<CommonParameters>]
ScriptTextBySession
New-ActiveScriptEventConsumer -CimSession <CimSession[]> -Name <String> [-ThrottleLimit <Int32>]
[-KillTimeout <UInt32>] -ScriptingEngine <String> -ScriptText <String> [<CommonParameters>]
FileNameBySession
New-ActiveScriptEventConsumer -CimSession <CimSession[]> -Name <String> [-ThrottleLimit <Int32>]
[-KillTimeout <UInt32>] -ScriptingEngine <String> -ScriptFileName <String> [<CommonParameters>]
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: ScriptTextBySession, FileNameBySession
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: ScriptTextByComputerName, FileNameByComputerName
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Credential
{{ Fill Credential Description }}
Type: System.Management.Automation.PSCredential
Parameter Sets: ScriptTextByComputerName, FileNameByComputerName
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-KillTimeout
{{ Fill KillTimeout Description }}
Type: System.UInt32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Name
{{ Fill Name Description }}
Type: System.String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ScriptFileName
{{ Fill ScriptFileName Description }}
Type: System.String
Parameter Sets: FileNameByComputerName, FileNameBySession
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ScriptingEngine
{{ Fill ScriptingEngine Description }}
Type: System.String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ScriptText
{{ Fill ScriptText Description }}
Type: System.String
Parameter Sets: ScriptTextByComputerName, ScriptTextBySession
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ThrottleLimit
{{ Fill ThrottleLimit Description }}
Type: System.Int32
Parameter Sets: (All)
Aliases:
Required: False
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.