Skip to content

Register-PermanentWmiEvent

SYNOPSIS

{{ Fill in the Synopsis }}

SYNTAX

SMTPComputerSet

Register-PermanentWmiEvent [-ComputerName <String[]>] [-Credential <PSCredential>] -Name <String>
 -EventNamespace <String> -Query <String> -QueryLanguage <String> [<CommonParameters>]

NtEventLogComputerSet

Register-PermanentWmiEvent [-ComputerName <String[]>] [-Credential <PSCredential>] -Name <String>
 -EventNamespace <String> -Query <String> -QueryLanguage <String> [-Category <UInt16>] -EventID <UInt32>
 [-EventType <UInt32>] [-InsertionStringTemplates <String[]>] -NameOfUserSidProperty <String>
 -NameOfRawDataProperty <String> -SourceName <String> [-UNCServerName <String>] [<CommonParameters>]

LogFileComputerSet

Register-PermanentWmiEvent [-ComputerName <String[]>] [-Credential <PSCredential>] -Name <String>
 -EventNamespace <String> -Query <String> -QueryLanguage <String> -Filename <String> [-IsUnicode <Boolean>]
 [-MaximumFileSize <UInt64>] -Text <String> [<CommonParameters>]

CommandLineTemplateComputerSet

Register-PermanentWmiEvent [-ComputerName <String[]>] [-Credential <PSCredential>] -Name <String>
 -EventNamespace <String> -Query <String> -QueryLanguage <String> [-KillTimeout <UInt32>]
 -CommandLineTemplate <String> [-CreateNewProcessGroup <Boolean>] [-CreateSeparateWowVdm <Boolean>]
 [-CreateSharedWowVdm <Boolean>] [-ForceOffFeedback <Boolean>] [-ForceOnFeedback <Boolean>] [-Priority <Int32>]
 [-RunInteractively <Boolean>] [-ShowWindowCommand <UInt32>] [-UseDefaultErrorMode <Boolean>]
 [-WindowTitle <String>] [-WorkingDirectory <String>] [-XCoordinate <UInt32>] [-XNumCharacters <UInt32>]
 [-XSize <UInt32>] [-YCoordinate <UInt32>] [-YNumCharacters <UInt32>] [-YSize <UInt32>] [<CommonParameters>]

CommandLineComputerSet

Register-PermanentWmiEvent [-ComputerName <String[]>] [-Credential <PSCredential>] -Name <String>
 -EventNamespace <String> -Query <String> -QueryLanguage <String> [-KillTimeout <UInt32>]
 -ExecutablePath <String> [-CreateNewProcessGroup <Boolean>] [-CreateSeparateWowVdm <Boolean>]
 [-CreateSharedWowVdm <Boolean>] [-ForceOffFeedback <Boolean>] [-ForceOnFeedback <Boolean>] [-Priority <Int32>]
 [-RunInteractively <Boolean>] [-ShowWindowCommand <UInt32>] [-UseDefaultErrorMode <Boolean>]
 [-WindowTitle <String>] [-WorkingDirectory <String>] [-XCoordinate <UInt32>] [-XNumCharacters <UInt32>]
 [-XSize <UInt32>] [-YCoordinate <UInt32>] [-YNumCharacters <UInt32>] [-YSize <UInt32>] [<CommonParameters>]

ActiveScriptTextComputerSet

Register-PermanentWmiEvent [-ComputerName <String[]>] [-Credential <PSCredential>] -Name <String>
 -EventNamespace <String> -Query <String> -QueryLanguage <String> [-KillTimeout <UInt32>]
 -ScriptingEngine <String> -ScriptText <String> [<CommonParameters>]

ActiveScriptFileComputerSet

Register-PermanentWmiEvent [-ComputerName <String[]>] [-Credential <PSCredential>] -Name <String>
 -EventNamespace <String> -Query <String> -QueryLanguage <String> [-KillTimeout <UInt32>]
 -ScriptingEngine <String> -ScriptFileName <String> [<CommonParameters>]

SMTPSessionSet

Register-PermanentWmiEvent -CimSession <CimSession[]> -Name <String> -EventNamespace <String> -Query <String>
 -QueryLanguage <String> [<CommonParameters>]

NtEventLogSessionSet

Register-PermanentWmiEvent -CimSession <CimSession[]> -Name <String> -EventNamespace <String> -Query <String>
 -QueryLanguage <String> [-Category <UInt16>] -EventID <UInt32> [-EventType <UInt32>]
 [-InsertionStringTemplates <String[]>] -NameOfUserSidProperty <String> -NameOfRawDataProperty <String>
 -SourceName <String> [-UNCServerName <String>] [<CommonParameters>]

LogFileSessionSet

Register-PermanentWmiEvent -CimSession <CimSession[]> -Name <String> -EventNamespace <String> -Query <String>
 -QueryLanguage <String> -Filename <String> [-IsUnicode <Boolean>] [-MaximumFileSize <UInt64>] -Text <String>
 [<CommonParameters>]

CommandLineTemplateSessionSet

Register-PermanentWmiEvent -CimSession <CimSession[]> -Name <String> -EventNamespace <String> -Query <String>
 -QueryLanguage <String> [-KillTimeout <UInt32>] -CommandLineTemplate <String>
 [-CreateNewProcessGroup <Boolean>] [-CreateSeparateWowVdm <Boolean>] [-CreateSharedWowVdm <Boolean>]
 [-ForceOffFeedback <Boolean>] [-ForceOnFeedback <Boolean>] [-Priority <Int32>] [-RunInteractively <Boolean>]
 [-ShowWindowCommand <UInt32>] [-UseDefaultErrorMode <Boolean>] [-WindowTitle <String>]
 [-WorkingDirectory <String>] [-XCoordinate <UInt32>] [-XNumCharacters <UInt32>] [-XSize <UInt32>]
 [-YCoordinate <UInt32>] [-YNumCharacters <UInt32>] [-YSize <UInt32>] [<CommonParameters>]

CommandLineSessionSet

Register-PermanentWmiEvent -CimSession <CimSession[]> -Name <String> -EventNamespace <String> -Query <String>
 -QueryLanguage <String> [-KillTimeout <UInt32>] -ExecutablePath <String> [-CreateNewProcessGroup <Boolean>]
 [-CreateSeparateWowVdm <Boolean>] [-CreateSharedWowVdm <Boolean>] [-ForceOffFeedback <Boolean>]
 [-ForceOnFeedback <Boolean>] [-Priority <Int32>] [-RunInteractively <Boolean>] [-ShowWindowCommand <UInt32>]
 [-UseDefaultErrorMode <Boolean>] [-WindowTitle <String>] [-WorkingDirectory <String>] [-XCoordinate <UInt32>]
 [-XNumCharacters <UInt32>] [-XSize <UInt32>] [-YCoordinate <UInt32>] [-YNumCharacters <UInt32>]
 [-YSize <UInt32>] [<CommonParameters>]

ActiveScriptTextSessionSet

Register-PermanentWmiEvent -CimSession <CimSession[]> -Name <String> -EventNamespace <String> -Query <String>
 -QueryLanguage <String> [-KillTimeout <UInt32>] -ScriptingEngine <String> -ScriptText <String>
 [<CommonParameters>]

ActiveScriptFileSessionSet

Register-PermanentWmiEvent -CimSession <CimSession[]> -Name <String> -EventNamespace <String> -Query <String>
 -QueryLanguage <String> [-KillTimeout <UInt32>] -ScriptingEngine <String> -ScriptFileName <String>
 [<CommonParameters>]

SmtpSessionSet

Register-PermanentWmiEvent -Name <String> -EventNamespace <String> -Query <String> -QueryLanguage <String>
 [-BccLine <String>] [-CcLine <String>] [-FromLine <String>] [-HeaderFields <String[]>] -Message <String>
 [-ReplyToLine <String>] -SMTPServer <String> [-Subject <String>] -ToLine <String> [<CommonParameters>]

SmtpComputerSet

Register-PermanentWmiEvent -Name <String> -EventNamespace <String> -Query <String> -QueryLanguage <String>
 [-BccLine <String>] [-CcLine <String>] [-FromLine <String>] [-HeaderFields <String[]>] -Message <String>
 [-ReplyToLine <String>] -SMTPServer <String> [-Subject <String>] -ToLine <String> [<CommonParameters>]

DESCRIPTION

{{ Fill in the Description }}

EXAMPLES

Example 1

PS C:\> {{ Add example code here }}

{{ Add example description here }}

PARAMETERS

-BccLine

{{ Fill BccLine Description }}

Type: System.String
Parameter Sets: SmtpSessionSet, SmtpComputerSet
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Category

{{ Fill Category Description }}

Type: System.UInt16
Parameter Sets: NtEventLogComputerSet, NtEventLogSessionSet
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-CcLine

{{ Fill CcLine Description }}

Type: System.String
Parameter Sets: SmtpSessionSet, SmtpComputerSet
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-CimSession

{{ Fill CimSession Description }}

Type: Microsoft.Management.Infrastructure.CimSession[]
Parameter Sets: SMTPSessionSet, NtEventLogSessionSet, LogFileSessionSet, CommandLineTemplateSessionSet, CommandLineSessionSet, ActiveScriptTextSessionSet, ActiveScriptFileSessionSet
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-CommandLineTemplate

{{ Fill CommandLineTemplate Description }}

Type: System.String
Parameter Sets: CommandLineTemplateComputerSet, CommandLineTemplateSessionSet
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: SMTPComputerSet, NtEventLogComputerSet, LogFileComputerSet, CommandLineTemplateComputerSet, CommandLineComputerSet, ActiveScriptTextComputerSet, ActiveScriptFileComputerSet
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-CreateNewProcessGroup

{{ Fill CreateNewProcessGroup Description }}

Type: System.Boolean
Parameter Sets: CommandLineTemplateComputerSet, CommandLineComputerSet, CommandLineTemplateSessionSet, CommandLineSessionSet
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-CreateSeparateWowVdm

{{ Fill CreateSeparateWowVdm Description }}

Type: System.Boolean
Parameter Sets: CommandLineTemplateComputerSet, CommandLineComputerSet, CommandLineTemplateSessionSet, CommandLineSessionSet
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-CreateSharedWowVdm

{{ Fill CreateSharedWowVdm Description }}

Type: System.Boolean
Parameter Sets: CommandLineTemplateComputerSet, CommandLineComputerSet, CommandLineTemplateSessionSet, CommandLineSessionSet
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: SMTPComputerSet, NtEventLogComputerSet, LogFileComputerSet, CommandLineTemplateComputerSet, CommandLineComputerSet, ActiveScriptTextComputerSet, ActiveScriptFileComputerSet
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-EventID

{{ Fill EventID Description }}

Type: System.UInt32
Parameter Sets: NtEventLogComputerSet, NtEventLogSessionSet
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-EventNamespace

{{ Fill EventNamespace Description }}

Type: System.String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-EventType

{{ Fill EventType Description }}

Type: System.UInt32
Parameter Sets: NtEventLogComputerSet, NtEventLogSessionSet
Aliases:
Accepted values: 0, 1, 2, 4, 8, 16

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ExecutablePath

{{ Fill ExecutablePath Description }}

Type: System.String
Parameter Sets: CommandLineComputerSet, CommandLineSessionSet
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Filename

{{ Fill Filename Description }}

Type: System.String
Parameter Sets: LogFileComputerSet, LogFileSessionSet
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ForceOffFeedback

{{ Fill ForceOffFeedback Description }}

Type: System.Boolean
Parameter Sets: CommandLineTemplateComputerSet, CommandLineComputerSet, CommandLineTemplateSessionSet, CommandLineSessionSet
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ForceOnFeedback

{{ Fill ForceOnFeedback Description }}

Type: System.Boolean
Parameter Sets: CommandLineTemplateComputerSet, CommandLineComputerSet, CommandLineTemplateSessionSet, CommandLineSessionSet
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-FromLine

{{ Fill FromLine Description }}

Type: System.String
Parameter Sets: SmtpSessionSet, SmtpComputerSet
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-HeaderFields

{{ Fill HeaderFields Description }}

Type: System.String[]
Parameter Sets: SmtpSessionSet, SmtpComputerSet
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-InsertionStringTemplates

{{ Fill InsertionStringTemplates Description }}

Type: System.String[]
Parameter Sets: NtEventLogComputerSet, NtEventLogSessionSet
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-IsUnicode

{{ Fill IsUnicode Description }}

Type: System.Boolean
Parameter Sets: LogFileComputerSet, LogFileSessionSet
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: CommandLineTemplateComputerSet, CommandLineComputerSet, ActiveScriptTextComputerSet, ActiveScriptFileComputerSet, CommandLineTemplateSessionSet, CommandLineSessionSet, ActiveScriptTextSessionSet, ActiveScriptFileSessionSet
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-MaximumFileSize

{{ Fill MaximumFileSize Description }}

Type: System.UInt64
Parameter Sets: LogFileComputerSet, LogFileSessionSet
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Message

{{ Fill Message Description }}

Type: System.String
Parameter Sets: SmtpSessionSet, SmtpComputerSet
Aliases:

Required: True
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

-NameOfRawDataProperty

{{ Fill NameOfRawDataProperty Description }}

Type: System.String
Parameter Sets: NtEventLogComputerSet, NtEventLogSessionSet
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-NameOfUserSidProperty

{{ Fill NameOfUserSidProperty Description }}

Type: System.String
Parameter Sets: NtEventLogComputerSet, NtEventLogSessionSet
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Priority

{{ Fill Priority Description }}

Type: System.Int32
Parameter Sets: CommandLineTemplateComputerSet, CommandLineComputerSet, CommandLineTemplateSessionSet, CommandLineSessionSet
Aliases:
Accepted values: 32, 64, 128, 256

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Query

{{ Fill Query Description }}

Type: System.String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-QueryLanguage

{{ Fill QueryLanguage Description }}

Type: System.String
Parameter Sets: (All)
Aliases:
Accepted values: WQL

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ReplyToLine

{{ Fill ReplyToLine Description }}

Type: System.String
Parameter Sets: SmtpSessionSet, SmtpComputerSet
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-RunInteractively

{{ Fill RunInteractively Description }}

Type: System.Boolean
Parameter Sets: CommandLineTemplateComputerSet, CommandLineComputerSet, CommandLineTemplateSessionSet, CommandLineSessionSet
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-SMTPServer

{{ Fill SMTPServer Description }}

Type: System.String
Parameter Sets: SmtpSessionSet, SmtpComputerSet
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: ActiveScriptFileComputerSet, ActiveScriptFileSessionSet
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: ActiveScriptTextComputerSet, ActiveScriptTextSessionSet
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: ActiveScriptTextComputerSet, ActiveScriptFileComputerSet, ActiveScriptTextSessionSet, ActiveScriptFileSessionSet
Aliases:
Accepted values: VBScript, jscript

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ShowWindowCommand

{{ Fill ShowWindowCommand Description }}

Type: System.UInt32
Parameter Sets: CommandLineTemplateComputerSet, CommandLineComputerSet, CommandLineTemplateSessionSet, CommandLineSessionSet
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-SourceName

{{ Fill SourceName Description }}

Type: System.String
Parameter Sets: NtEventLogComputerSet, NtEventLogSessionSet
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Subject

{{ Fill Subject Description }}

Type: System.String
Parameter Sets: SmtpSessionSet, SmtpComputerSet
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Text

{{ Fill Text Description }}

Type: System.String
Parameter Sets: LogFileComputerSet, LogFileSessionSet
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ToLine

{{ Fill ToLine Description }}

Type: System.String
Parameter Sets: SmtpSessionSet, SmtpComputerSet
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-UNCServerName

{{ Fill UNCServerName Description }}

Type: System.String
Parameter Sets: NtEventLogComputerSet, NtEventLogSessionSet
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-UseDefaultErrorMode

{{ Fill UseDefaultErrorMode Description }}

Type: System.Boolean
Parameter Sets: CommandLineTemplateComputerSet, CommandLineComputerSet, CommandLineTemplateSessionSet, CommandLineSessionSet
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-WindowTitle

{{ Fill WindowTitle Description }}

Type: System.String
Parameter Sets: CommandLineTemplateComputerSet, CommandLineComputerSet, CommandLineTemplateSessionSet, CommandLineSessionSet
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-WorkingDirectory

{{ Fill WorkingDirectory Description }}

Type: System.String
Parameter Sets: CommandLineTemplateComputerSet, CommandLineComputerSet, CommandLineTemplateSessionSet, CommandLineSessionSet
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-XCoordinate

{{ Fill XCoordinate Description }}

Type: System.UInt32
Parameter Sets: CommandLineTemplateComputerSet, CommandLineComputerSet, CommandLineTemplateSessionSet, CommandLineSessionSet
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-XNumCharacters

{{ Fill XNumCharacters Description }}

Type: System.UInt32
Parameter Sets: CommandLineTemplateComputerSet, CommandLineComputerSet, CommandLineTemplateSessionSet, CommandLineSessionSet
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-XSize

{{ Fill XSize Description }}

Type: System.UInt32
Parameter Sets: CommandLineTemplateComputerSet, CommandLineComputerSet, CommandLineTemplateSessionSet, CommandLineSessionSet
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-YCoordinate

{{ Fill YCoordinate Description }}

Type: System.UInt32
Parameter Sets: CommandLineTemplateComputerSet, CommandLineComputerSet, CommandLineTemplateSessionSet, CommandLineSessionSet
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-YNumCharacters

{{ Fill YNumCharacters Description }}

Type: System.UInt32
Parameter Sets: CommandLineTemplateComputerSet, CommandLineComputerSet, CommandLineTemplateSessionSet, CommandLineSessionSet
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-YSize

{{ Fill YSize Description }}

Type: System.UInt32
Parameter Sets: CommandLineTemplateComputerSet, CommandLineComputerSet, CommandLineTemplateSessionSet, CommandLineSessionSet
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.

INPUTS

None

OUTPUTS

System.Object

NOTES

Back to top