Add local Windows Server inventory collection and validation; include core package

This commit is contained in:
2026-10-30 11:24:40 -07:00
parent 967b2bd46a
commit f65ade9fff
35 changed files with 2200 additions and 56 deletions

View File

@@ -0,0 +1,10 @@
function Get-SamsaraRoles {
param($Result)
Invoke-SamsaraRead $Result 'Server roles and features' {
$Result.data = @(Get-WindowsFeature -ErrorAction Stop | Where-Object { $_.Installed } | ForEach-Object {
[pscustomobject]@{ name = [string]$_.Name; display_name = [string]$_.DisplayName
state = [string]$_.InstallState; feature_type = [string]$_.FeatureType }
})
}
$Result.limitations += 'Installed roles/features only; installed state does not prove current use. Requires local ServerManager availability.'
}