2023-01-22 22:32:07 +01:00
|
|
|
@echo off
|
|
|
|
call check-for-admin
|
|
|
|
if %ERRORLEVEL% neq 0 exit /b
|
|
|
|
|
|
|
|
echo ####### %0 #######
|
|
|
|
|
2023-01-29 17:23:17 +01:00
|
|
|
echo Installing package provider NuGet ...
|
2023-01-22 22:32:07 +01:00
|
|
|
powershell -command "Install-PackageProvider NuGet -Force"
|
|
|
|
|
2023-01-29 17:23:17 +01:00
|
|
|
echo Setting policy for PSGallery to trusted ...
|
2023-01-22 22:32:07 +01:00
|
|
|
powershell -command "Set-PSRepository PSGallery -InstallationPolicy Trusted"
|
|
|
|
|
2023-01-29 17:23:17 +01:00
|
|
|
echo Installing powershell package PSWindowsUpdate ...
|
2023-01-22 22:32:07 +01:00
|
|
|
powershell -command "Install-Module PSWindowsUpdate"
|
|
|
|
echo.
|
|
|
|
|
|
|
|
echo ####### %0 #######
|
|
|
|
pause
|
2023-01-29 17:23:17 +01:00
|
|
|
|