Get-AdfsClient

Retrieves registration information for an OAuth 2.0 client.

Syntax

Get-AdfsClient
   [[-Name] <String[]>]
   [<CommonParameters>]
Get-AdfsClient
   [-ClientId] <String[]>
   [<CommonParameters>]
Get-AdfsClient
   [-InputObject] <AdfsClient>
   [<CommonParameters>]

Description

The Get-AdfsClient cmdlet retrieves registration information for an OAuth 2.0 client that was previously registered with Active Directory Federation Services (AD FS).

Examples

Example 1: Retrieve registration information for all clients

PS C:\> Get-AdfsClient



RedirectUri : {ms-app://windows.immersivecontrolpanel/}
Name        : Device Registration Client
Description : Client for the Device Registration Service
ClientId    : dd762716-544d-4aeb-a526-687b73838a22
BuiltIn     : True
Enabled     : True
ClientType  : Public

RedirectUri : {https://168f3ee4-63fc-4723-a61a-6473f6cb515c/redir}
Name        : Windows Server Work Folders Client
Description : Client for syncing user files to a Work Folders sync share
ClientId    : 168f3ee4-63fc-4723-a61a-6473f6cb515c
BuiltIn     : True
Enabled     : True
ClientType  : Public

This command retrieves registration information for all OAuth 2.0 clients currently registered withAD FS.

Example 2: Retrieve registration information by client name

PS C:\> Get-AdfsClient -Name "Device Registration Client"



RedirectUri : {ms-app://windows.immersivecontrolpanel/}
Name        : Device Registration Client
Description : Client for the Device Registration Service
ClientId    : dd762716-544d-4aeb-a526-687b73838a22
BuiltIn     : True
Enabled     : True
ClientType  : Public

This command retrieves registration information for the OAuth 2.0 client named Device Registration Client.

Example 3: Retrieve registration information by client ID

PS C:\> Get-AdfsClient -ClientId "dd762716-544d-4aeb-a526-687b73838a22"



RedirectUri : {ms-app://windows.immersivecontrolpanel/}
Name        : Device Registration Client
Description : Client for the Device Registration Service
ClientId    : dd762716-544d-4aeb-a526-687b73838a22
BuiltIn     : True
Enabled     : True
ClientType  : Public

This command retrieves registration information for the OAuth 2.0 client specified by the client identifier dd762716-544d-4aeb-a526-687b73838a22.

Parameters

-ClientId

Specifies an array of client identifiers for the OAuth 2.0 client for which to retrieve registration information.

Type:String[]
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-InputObject

Specifies an object of type AdfsClient that represents an OAuth 2.0 client for which to retrieve registration information.

Type:AdfsClient
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Name

Specifies the name of the OAuth 2.0 client for which to retrieve registration information.

Type:String[]
Position:0
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

Inputs

String

String objects are received by the ClientId and Name parameters.

AdfsClient

AdfsClient objects are received by the InputObject parameter.

Outputs

AdfsClient

Returns one or more AdfsClient objects that represent the Adfs Clients for the Federation Service.