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) ...
|
echo refreshing desktop (W10 style) ...
|
||||||
ie4uinit.exe -show
|
ie4uinit.exe -show
|
||||||
timeout /nobreak 5
|
|
||||||
|
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
||||||
pause
|
pause
|
||||||
|
@ -158,11 +158,9 @@ echo.
|
|||||||
powershell -command .\install-windowsterminal.ps1
|
powershell -command .\install-windowsterminal.ps1
|
||||||
echo.
|
echo.
|
||||||
|
|
||||||
rem fuck you microsoft ...
|
|
||||||
call install-openshell.cmd
|
call install-openshell.cmd
|
||||||
echo.
|
echo.
|
||||||
|
|
||||||
rem fuck you google ...
|
|
||||||
if %install_firefox% == 1 (
|
if %install_firefox% == 1 (
|
||||||
call install-firefox.cmd
|
call install-firefox.cmd
|
||||||
echo.
|
echo.
|
||||||
@ -201,6 +199,24 @@ echo.
|
|||||||
powershell -command .\disable-soundscheme.ps1
|
powershell -command .\disable-soundscheme.ps1
|
||||||
echo.
|
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 #####################
|
||||||
echo ### CLEANUP tasks ###
|
echo ### CLEANUP tasks ###
|
||||||
echo #####################
|
echo #####################
|
||||||
|
@ -7,8 +7,8 @@ echo ####### %0 #######
|
|||||||
echo blocking UPDATE KB5005463 aka. PC-Health ...
|
echo blocking UPDATE KB5005463 aka. PC-Health ...
|
||||||
powershell -command "Hide-WindowsUpdate -KBArticleID KB5005463 -AcceptAll"
|
powershell -command "Hide-WindowsUpdate -KBArticleID KB5005463 -AcceptAll"
|
||||||
|
|
||||||
echo showing WINDOWS updates ...
|
echo showing HIDDEN windows updates ...
|
||||||
powershell -command "Get-WindowsUpdate"
|
powershell -command "Get-WindowsUpdate -IsHidden"
|
||||||
|
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
||||||
pause
|
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 ####### %0 #######
|
||||||
|
|
||||||
echo Installing package provider "NuGet" ...
|
echo Installing package provider NuGet ...
|
||||||
powershell -command "Install-PackageProvider NuGet -Force"
|
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"
|
powershell -command "Set-PSRepository PSGallery -InstallationPolicy Trusted"
|
||||||
|
|
||||||
echo Installing powershell package "PSWindowsUpdate" ...
|
echo Installing powershell package PSWindowsUpdate ...
|
||||||
powershell -command "Install-Module PSWindowsUpdate"
|
powershell -command "Install-Module PSWindowsUpdate"
|
||||||
echo.
|
echo.
|
||||||
|
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
||||||
pause
|
pause
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user