< Back

Export-ADFSClient

Fri Jan 10, 2020 7:23 pm

NAME Export-ADFSClient



SYNOPSIS

This script exports ADFSClient values with extra authentication rules to allow for remote execution.





SYNTAX

Export-ADFSClient [[-Name] <String>] [-ClientId <String>] [-Server <String>] [-Credential <PSCredential>]

[<CommonParameters>]





DESCRIPTION

Exports all client rules from farm, with extra local/remote server and credential flags to make it more flexible

in a CI/CD scenario.





PARAMETERS

-Name <String>

Param1 help description



Required? false

Position? 1

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-ClientId <String>



Required? false

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Server <String>



Required? false

Position? named

Default value $env:COMPUTERNAME

Accept pipeline input? false

Accept wildcard characters? false



-Credential <PSCredential>



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Export-ADFSClient



This will export all clients in json format for saving in a config-as-code scenario.









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Export-ADFSClient -Name MyClient -Server ADFS01 -Credential $creds



In this example a remote server and credentials are proivided. The credential parameter is not mandetory if

current logged-in credentails will work.











RELATED LINKS