PrzemyslawKlys / DSCParser

Allows the conversion of DSC scripts into PSObject for analysis purposes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DSC Parser

Receives a DSC configuration script (.ps1) as an input, and parses all containes resources and properties into logical PSObject. Usage scenario include: analyzing DSC config for best practices, getting quick stats out of a config, etc.

Installation

DSCParser is available from the PowerShell Gallery, simply run:

Install-Module DSCParser

Usage

$DSCObjects = ConvertTo-DSCObject -Path $PSScriptRoot\..\Tests\Templates\Template1.ps1 -IncludeComments $true
$DSCObjects | Format-Table

About

Allows the conversion of DSC scripts into PSObject for analysis purposes

License:MIT License


Languages

Language:PowerShell 100.0%