PoshCode / Configuration

A module to help other modules have settings
MIT License
176 stars 27 forks source link

Are scripts also able to benefit from this configuration module? #51

Closed siims-biz closed 11 months ago

siims-biz commented 11 months ago

Are powershell scripts also able to benefit from this configuration module?

Jaykul commented 11 months ago

Sure thing.

Import-ParameterConfiguration and Get-ParameterValue in particular are specifically written for scripts to load default parameter values from a config file.

You can also use Export-Configuration and Import-Configuration with the ManualOverride parameter set, where you explicitly pass the -CompanyName and -Name that are used to calculate a path for storage.