Get-AdfsClient is accessible with the help of adfs module. To install adfs on your system please refer to this adfs.
Synopsis
Retrieves registration information for an OAuth 2.0 client.
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).
Parameters
-ClientId
Specifies an array of client identifiers for the OAuth 2.0 client for which to retrieve registration information.
Required? true
Position? 1
Default value none
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-InputObject <AdfsClient>
Specifies an object of type AdfsClient that represents an OAuth 2.0 client for which to retrieve registration information.
Required? true
Position? 1
Default value none
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
-Name <String[]>
Specifies the name of the OAuth 2.0 client for which to retrieve registration information.
Required? false
Position? 1
Default value none
Accept pipeline input? True (ByValue, ByPropertyName)
Accept wildcard characters? false
Syntax
Get-AdfsClient [[-Name] <String[]>] [<CommonParameters>]
Get-AdfsClient [-ClientId] <String[]> [<CommonParameters>]
Get-AdfsClient [-InputObject] <AdfsClient> [<CommonParameters>]
——————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 : ba2398dc-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 : 89s8edcd-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 : ba2398dc-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 “ba2398dc-544d-4aeb-a526-687b73838a22”
RedirectUri : {ms-app://windows.immersivecontrolpanel/}
Name : Device Registration Client
Description : Client for the Device Registration Service
ClientId : ba2398dc-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 ba2398dc-544d-4aeb-a526-687b73838a22.
You can check the Version, CommandType and Source of this cmdlet by giving below command.
Get-Command Get-AdfsClient
You can also read about
- Add-AdfsClient
- Disable-AdfsClient
- Enable-AdfsClient
- Remove-AdfsClient
- Set-AdfsClient