Skip to content

Instantly share code, notes, and snippets.

@SteveL-MSFT
Created December 12, 2025 18:54
Show Gist options
  • Select an option

  • Save SteveL-MSFT/1e830a0a5a0a4405f006a1b4cbf53717 to your computer and use it in GitHub Desktop.

Select an option

Save SteveL-MSFT/1e830a0a5a0a4405f006a1b4cbf53717 to your computer and use it in GitHub Desktop.
{
"$schema": "https://aka.ms/dsc/schemas/v3/bundled/resource/manifest.json",
"type": "Microsoft.DSC.Inventory/Hardware",
"description": "Retrieve hardware information",
"version": "0.1.0",
"get": {
"executable": "pwsh",
"args": [
"-NoLogo",
"-NonInteractive",
"-NoProfile",
"-ExecutionPolicy",
"Bypass",
"-Command",
"./hw.ps1"
]
},
"exitCodes": {
"0": "Success",
"1": "PowerShell script execution failed"
},
"schema": {
"embedded": {
"type": "object"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment