Get-PPModuleConfiguration

Reads configuration values stored in the module's local cache.

Syntax

Default (Default)

Get-PPModuleConfiguration
    [[-Name] <String>]
    [<CommonParameters>]

Description

The Get-PPModuleConfiguration cmdlet returns configuration values persisted in the module's cached configuration file. When called without a name, it returns the entire configuration container. When a name is provided, it returns the value stored under that name, or $null when the name isn't set.

Examples

EXAMPLE 1

Get-PPModuleConfiguration

Returns every stored module configuration value.

EXAMPLE 2

Get-PPModuleConfiguration -Name "ServicePrincipalAuth"

Returns the stored service principal authentication configuration, or $null when it hasn't been set.

Parameters

-Name

The name of the configuration entry to return. Omit to return all configuration.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:1
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Outputs

System.Object

Returns the configuration container when no name is provided, or the value stored under the requested

name.