first commit

This commit is contained in:
unknown committed 2026-09-19 20:55:32 -04:00
1 parent 831814283e
commit 7aacc0b63f
29 files changed
+5114

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
#Requires -Version 5.1
[CmdletBinding()]
param(
[ValidateSet('Inventory','Verify')][string]$Mode='Inventory',
[string]$Manifest,
[switch]$Json
)
Set-StrictMode -Version Latest
$ErrorActionPreference='Stop'
Import-Module (Join-Path $PSScriptRoot 'src/Wind.OfflineUpdates.psm1') -Force
if ([Environment]::OSVersion.Platform -ne [PlatformID]::Win32NT) { throw 'Windows is required.' }
$target=Get-WindUpdateTarget
if ($Mode -eq 'Inventory') {
if ($Manifest) { throw 'Manifest is only used with Verify.' }
$result=[pscustomobject]@{Target=$target;Scope='Local OS version/edition/architecture only. No machine name, account, serial, GDID, IP address or recovery key.'}
} else {
if (-not $Manifest) { throw 'Verify requires an absolute local -Manifest path.' }
$result=Test-WindOfflineBundle -Manifest $Manifest -Target $target
}
if ($Json) { $result | ConvertTo-Json -Depth 8 } else { $result | Format-List }