w10install/optional/install-psupdate.cmd

19 lines
488 B
Batchfile
Raw Normal View History

2023-01-22 22:32:07 +01:00
@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