< Back

Get-ConfigData

Thu Jan 16, 2020 8:25 am

NAME Get-ConfigData



SYNOPSIS

Get data from a JSON config file





SYNTAX

Get-ConfigData [-AsSecureString] [-Decrypt] [-Quiet] [-SkipNameValidate] [-Path <String>] [<CommonParameters>]





DESCRIPTION





PARAMETERS

-AsSecureString [<SwitchParameter>]

Return the encrypted data as a SecureString



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Decrypt [<SwitchParameter>]

Return encrypted data in clear text



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Quiet [<SwitchParameter>]

Don't kick out a Warning message if not found



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-SkipNameValidate [<SwitchParameter>]



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Path <String>

Path to the config file



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

Object from config file, or $null





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



PS C:\\>Get-ConfigData Key















RELATED LINKS