New-ADFSContactPerson
New-ADFSContactPerson
Creates a new contact person object.
Syntax
Parameter Set: Default
New-ADFSContactPerson [-Company <String> ] [-EmailAddress <String[]> ] [-GivenName <String> ] [-Surname <String> ] [-TelephoneNumber <String[]> ] [ <CommonParameters>]
Detailed Description
The New-ADFSContactPerson cmdlet creates a new contact person object in the Federation Service.
Parameters
-Company<String>
Specifies the company name of the contact person.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-EmailAddress<String[]>
Specifies the e-mail address of the contact person.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-GivenName<String>
Specifies the given name of the contact person.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Surname<String>
Specifies the surname (last name) of the contact person.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-TelephoneNumber<String[]>
Specifies the telephone number of the contact person.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
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.
- None
Outputs
The output type is the type of the objects that the cmdlet emits.
Microsoft.IdentityServer.PowerShell.Resources.ContactPerson
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.
Examples
-------------------------- EXAMPLE 1 --------------------------
Description
-----------
Creates a new contact person and sets it in the Federation Service.
C:\PS>$cp = New-ADFSContactPerson -EmailAddress "support@fabrikam.com"
Set-ADFSProperties -ContactPerson $cp
Related topics
Get-ADFSProperties
Set-ADFSProperties