Add an update-status tool and copy numbered scripts to Desktop\Tools
80-Get-UpdateStatus-Admin.ps1 prints whether the Windows 11 guest is upgrading or downloading updates (policy, pending markers, services, processes, BITS jobs, update events, network use); the .bat launcher elevates and keeps the window open. The seed ISO and Configure-Windows.ps1 now take every NN-*.bat and NN-*.ps1, and the first-logon copy goes to Desktop\Tools instead of Desktop\Installers. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
fccc7986d9
commit
72af276309
5 files changed
+127
-5
No files matched your search
@@ -144,12 +144,14 @@ function Disable-AutomaticUpdate {
|
||||
}
|
||||
|
||||
function Copy-InstallerScripts {
|
||||
$scripts = @(Get-ChildItem -Path $PSScriptRoot -Filter '*-Install-*.bat' -File)
|
||||
# Numbered scripts (NN-*.bat / NN-*.ps1: installers and tools) go to Desktop\Tools.
|
||||
$scripts = @(Get-ChildItem -Path $PSScriptRoot -File |
|
||||
Where-Object { $_.Name -match '^\d\d-.*\.(bat|ps1)$' })
|
||||
if ($scripts.Count -eq 0) {
|
||||
throw "No installer batch files were found next to $PSCommandPath."
|
||||
}
|
||||
|
||||
$target = Join-Path ([Environment]::GetFolderPath('Desktop')) 'Installers'
|
||||
$target = Join-Path ([Environment]::GetFolderPath('Desktop')) 'Tools'
|
||||
New-Item -ItemType Directory -Path $target -Force | Out-Null
|
||||
Copy-Item -Path $scripts.FullName -Destination $target -Force
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user