Get-CMEmailNotificationComponent

Get-CMEmailNotificationComponent

Gets an email notification components.

Syntax

Parameter Set: SearchByNameMandatory
Get-CMEmailNotificationComponent -SiteSystemServerName <String[]> [ <CommonParameters>]

Parameter Set: SearchBySiteCodeMandatory
Get-CMEmailNotificationComponent -SiteCode <String> [-SiteSystemServerName <String[]> ] [ <CommonParameters>]

Detailed Description

The Get-CMEmailNotificationComponent cmdlet gets one or more email notification components Microsoft System Center 2012 SP1 Configuration Manager.

Parameters

-SiteCode<String>

Specifies the three-letter site code of the Configuration Manager site that hosts the site system role.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-SiteSystemServerName<String[]>

Specifies an array of fully qualified domain names (FQDN) of the servers that host the site system role.

Aliases

Name

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Get an email notification component by using a site code

This command gets a notification component for the site that has the site code CM2.

PS C:\> Get-CMEmailNotificationComponent -SiteCode "CM2"

Example 2: Get an email notification component by using a site system server name

This command gets a notification component for the site that has the server that has the specified name.

PS C:\> Get-CMEmailNotificationComponent -SiteSystemServerName "CMCEN-DIST02.TSQA.CORP.CONTOSCO.COM"

Set-CMEmailNotificationComponent