bugfixing
This commit is contained in:
parent
714a590f98
commit
4d39a344cd
@ -25,7 +25,6 @@ del /F /Q "%PUBLIC%\Desktop\OpenVPN Connect.lnk" 2>nul
|
||||
|
||||
echo refreshing desktop (W10 style) ...
|
||||
ie4uinit.exe -show
|
||||
timeout /nobreak 5
|
||||
|
||||
echo ####### %0 #######
|
||||
pause
|
||||
|
@ -158,11 +158,9 @@ echo.
|
||||
powershell -command .\install-windowsterminal.ps1
|
||||
echo.
|
||||
|
||||
rem fuck you microsoft ...
|
||||
call install-openshell.cmd
|
||||
echo.
|
||||
|
||||
rem fuck you google ...
|
||||
if %install_firefox% == 1 (
|
||||
call install-firefox.cmd
|
||||
echo.
|
||||
@ -201,6 +199,24 @@ echo.
|
||||
powershell -command .\disable-soundscheme.ps1
|
||||
echo.
|
||||
|
||||
echo #####################
|
||||
echo ### UPDATES tasks ###
|
||||
echo #####################
|
||||
echo.
|
||||
|
||||
rem enable updates again ...
|
||||
if %windows_updates% == 1 (
|
||||
call enable-updates.cmd
|
||||
echo.
|
||||
)
|
||||
|
||||
rem install a powershell package for updates handling ...
|
||||
call install-psupdate.cmd
|
||||
echo.
|
||||
|
||||
call block-updates.cmd
|
||||
echo.
|
||||
|
||||
echo #####################
|
||||
echo ### CLEANUP tasks ###
|
||||
echo #####################
|
||||
|
@ -7,8 +7,8 @@ echo ####### %0 #######
|
||||
echo blocking UPDATE KB5005463 aka. PC-Health ...
|
||||
powershell -command "Hide-WindowsUpdate -KBArticleID KB5005463 -AcceptAll"
|
||||
|
||||
echo showing WINDOWS updates ...
|
||||
powershell -command "Get-WindowsUpdate"
|
||||
echo showing HIDDEN windows updates ...
|
||||
powershell -command "Get-WindowsUpdate -IsHidden"
|
||||
|
||||
echo ####### %0 #######
|
||||
pause
|
||||
|
10
scripts/enable-updates.cmd
Normal file
10
scripts/enable-updates.cmd
Normal file
@ -0,0 +1,10 @@
|
||||
@echo off
|
||||
set TOOLS=c:\tools
|
||||
|
||||
echo ####### %0 #######
|
||||
|
||||
echo enable UPDATES for ALL users ...
|
||||
%TOOLS%\wub.exe /E
|
||||
|
||||
echo ####### %0 #######
|
||||
|
@ -4,15 +4,16 @@ if %ERRORLEVEL% neq 0 exit /b
|
||||
|
||||
echo ####### %0 #######
|
||||
|
||||
echo Installing package provider "NuGet" ...
|
||||
echo Installing package provider NuGet ...
|
||||
powershell -command "Install-PackageProvider NuGet -Force"
|
||||
|
||||
echo Setting policy for "PSGallery" to "trusted" ...
|
||||
echo Setting policy for PSGallery to trusted ...
|
||||
powershell -command "Set-PSRepository PSGallery -InstallationPolicy Trusted"
|
||||
|
||||
echo Installing powershell package "PSWindowsUpdate" ...
|
||||
echo Installing powershell package PSWindowsUpdate ...
|
||||
powershell -command "Install-Module PSWindowsUpdate"
|
||||
echo.
|
||||
|
||||
echo ####### %0 #######
|
||||
pause
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user