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>
15 lines
344 B
Batchfile
15 lines
344 B
Batchfile
@echo off
|
|
setlocal
|
|
title Windows update status
|
|
|
|
fltmc >nul 2>&1
|
|
if errorlevel 1 (
|
|
echo Requesting administrator rights...
|
|
powershell.exe -NoProfile -Command "Start-Process -FilePath '%~f0' -Verb RunAs"
|
|
exit /b
|
|
)
|
|
|
|
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp080-Get-UpdateStatus-Admin.ps1"
|
|
echo.
|
|
pause
|