ci(lint): enhance PSScriptAnalyzer settings and suppress false positives; improve error handling in scripts
This commit is contained in:
@@ -329,7 +329,7 @@ function New-WinIsoNoPrompt {
|
||||
$fsi.VolumeName = $label
|
||||
$fsi.ChooseImageDefaultsForMediaType(13)
|
||||
# 5+ GB ISO needs explicit large-volume defaults if available.
|
||||
try { $fsi.UDFRevision = 0x102 } catch {}
|
||||
try { $fsi.UDFRevision = 0x102 } catch { Write-Verbose "UDF revision not supported on this IMAPI version." }
|
||||
|
||||
Write-Host " Adding ISO tree (this takes a few minutes for 5+ GB)..." -ForegroundColor Yellow
|
||||
$fsi.Root.AddTree($letter, $false)
|
||||
@@ -1114,4 +1114,4 @@ Write-Host " .\Validate-DeployState.ps1 -VMIPAddress $guestIP"
|
||||
Write-Host " .\Prepare-WinBuild2022.ps1 -VMIPAddress $guestIP [-SkipWindowsUpdate]"
|
||||
Write-Host ""
|
||||
Write-Host " VM is powered on with vmxnet3 + DHCP. Snapshot '$SnapshotName' taken." -ForegroundColor Green
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user