w10install/scripts/install-psupdate.cmd
Michael H.G. Schmidt 9a940568ae .
2023-01-26 11:13:20 +01:00

19 lines
488 B
Batchfile

@echo off
call check-for-admin
if %ERRORLEVEL% neq 0 exit /b
echo ####### %0 #######
echo Installing package provider "NuGet" ...
powershell -command "Install-PackageProvider NuGet -Force"
echo Setting policy for "PSGallery" to "trusted" ...
powershell -command "Set-PSRepository PSGallery -InstallationPolicy Trusted"
echo Installing powershell package "PSWindowsUpdate" ...
powershell -command "Install-Module PSWindowsUpdate"
echo.
echo ####### %0 #######
pause