Skip to content

Instantly share code, notes, and snippets.

View ffalor's full-sized avatar

Frank Falor ffalor

View GitHub Profile
@ffalor
ffalor / CreateMonoDscLayerZero.py
Last active October 20, 2020 15:12
Create a mono baseline file for Powershell Dsc
import csv
from pytablewriter import MarkdownTableWriter
DSC_FILE_NAME = "w2019MonoLayerZero.ps1"
CSV_FILE_NAME = "DSCResources.csv"
def mdtable(value_matrix):
"""
Generate Markdown table for resource.
@ffalor
ffalor / bolt_inventory.ps1
Created July 12, 2020 17:00
Powershell script to convert CSV to Bolt Inventory
$user = Read-Host -Prompt 'Input username'
$password = Read-Host -Prompt 'Input password'
$csv_path = Read-Host -Prompt 'Input path to inventory CSV'
$yaml_module = "powershell-yaml"
if ($null -eq (Get-InstalledModule -Name $yaml_module -ErrorAction SilentlyContinue)) {
Install-Module $yaml_module
}