Files
windowsupdate/Run-WindowsUpdate.bat
Ivan Carlos de Almeida 06c8b9e147
Some checks failed
Build, Push, Publish / Build & Release (push) Failing after 2s
first load
2025-12-16 04:45:16 -03:00

13 lines
510 B
Batchfile

@echo off
:: This script will run your PowerShell script with bypass and keep the window open
:: Check if PowerShell exists
where powershell >nul 2>&1
if %errorlevel% neq 0 (
echo PowerShell not found!
pause
exit /b
)
:: Run the PowerShell script with bypass and elevation
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "& {Start-Process powershell.exe -ArgumentList '-NoProfile -ExecutionPolicy Bypass -NoExit -File ""%~dp0Windows-Update.ps1""' -Verb RunAs -WindowStyle Normal}"
pause