< Back

Import-ADFSProperties

Fri Jan 10, 2020 7:24 pm

NAME Import-ADFSProperties



SYNOPSIS

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





SYNTAX

Import-ADFSProperties [-ADFSContent] <String> [-Server <String>] [-Credential <PSCredential>] [<CommonParameters>]





DESCRIPTION

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

flexible in a CI/CD scenario.





PARAMETERS

-ADFSContent <String>



Required? true

Position? 1

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:\\>Import-ADFSProperties



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









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



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