< Back

Export-ADFSProperties

Fri Jan 10, 2020 7:23 pm

NAME Export-ADFSProperties



SYNOPSIS

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





SYNTAX

Export-ADFSProperties [[-Server] <String>] [[-Credential] <PSCredential>] [<CommonParameters>]





DESCRIPTION

Exports all global properties from farm, with extra local/remote server and credential flags to make it more

flexible in a CI/CD scenario.





PARAMETERS

-Server <String>



Required? false

Position? 1

Default value $env:COMPUTERNAME

Accept pipeline input? false

Accept wildcard characters? false



-Credential <PSCredential>



Required? false

Position? 2

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-ADFSProperties



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









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



PS C:\\>Export-ADFSProperties -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