New-AdfsContactPerson is accessible with the help of adfs module. To install adfs on your system please refer to this adfs.
Synopsis
Creates a contact person object.
Description
The New-AdfsContactPerson cmdlet creates a contact person object in ADFS.
Parameters
-Company
Specifies the company name of the contact person.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-EmailAddress <String[]>
Specifies an array of e-mail addresses of the contact person.
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.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-Surname <String>
Specifies the surname, or last name, of the contact person.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-TelephoneNumber <String[]>
Specifies an array of telephone numbers of the contact person.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
Syntax
New-AdfsContactPerson [-Company <String>] [-EmailAddress <String[]>] [-GivenName <String>] [-TelephoneNumber <String[]>] [-Surname <String>] [<CommonParameters>]
Notes
You can publish this contact person in the federation metadata of the Federation Service by using the Set-AdfsProperties cmdlet.
———————Example 1———————
Create and publish contact person object
PS C:> $CP = New-AdfsContactPerson -EmailAddress “support@TOSSolution.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.
You can check the Version, CommandType and Source of this cmdlet by giving below command.
Get-Command New-AdfsContactPerson
You can also read about
- Get-AdfsProperties
- Set-AdfsProperties