Edit

Share via


New-AdfsContactPerson

Creates a contact person object.

Syntax

Default (Default)

New-AdfsContactPerson
    [-Company <String>]
    [-EmailAddress <String[]>]
    [-GivenName <String>]
    [-TelephoneNumber <String[]>]
    [-Surname <String>]
    [<CommonParameters>]

Description

The New-AdfsContactPerson cmdlet creates a contact person object in ADFS.

Examples

Example 1: Create and publish contact person object

PS C:\> $CP = New-AdfsContactPerson -EmailAddress "support@fabrikam.com"
PS C:\> Set-AdfsProperties -ContactPerson $CP

The first command creates a contact person who has the specified address, and then assigns it to the $CP variable.

The second command uses the Set-AdfsProperties cmdlet to publish the contact person object to the Federation Service.

Parameters

-Company

Specifies the company name of the contact person.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-EmailAddress

Specifies an array of e-mail addresses of the contact person.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-GivenName

Specifies the given name of the contact person.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Surname

Specifies the surname, or last name, of the contact person.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-TelephoneNumber

Specifies an array of telephone numbers of the contact person.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

None

Outputs

Microsoft.IdentityServer.PowerShell.Resources.ContactPerson

This cmdlet generates a class structure that represents a contact person object in the Federation Service.

Notes

  • You can publish this contact person in the federation metadata of the Federation Service by using the Set-AdfsProperties cmdlet.