Skip to content

Loading Configurations

Brandon Olin edited this page Jan 4, 2016 · 5 revisions

You load POSHOrigin configurations by calling the Get-POSHOriginConfig function and specifying the file, files, or folder to process. You can recursively process subfolders as well. Get-POSHOriginConfig returns one or more custom objects that can then be converted into DSC configurations.

See Get-POSHOriginConfig for more information.

$myConfig = Get-POSHOriginConfig -Path .\myFolder.ps1 -Verbose
$myConfigs = '.\myfile1.ps1', 'myfile2.ps1' | Get-POSHOriginConfig -Verbose
$myConfigs = Get-POSHOriginConfig -Path . -Recurse -Verbose

Clone this wiki locally