This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $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 | |
| } |