added powershell UPDATE BLOCKER
This commit is contained in:
parent
2573273bb0
commit
2ba1827365
15
optional/block-updates.cmd
Normal file
15
optional/block-updates.cmd
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
@echo off
|
||||||
|
call check-for-admin
|
||||||
|
if %ERRORLEVEL% neq 0 exit /b
|
||||||
|
|
||||||
|
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 ####### %0 #######
|
||||||
|
pause
|
||||||
|
|
18
optional/install-psupdate.cmd
Normal file
18
optional/install-psupdate.cmd
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
@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
|
@ -178,14 +178,6 @@ rem should be done as late as possible ...
|
|||||||
call install-logonscript.cmd
|
call install-logonscript.cmd
|
||||||
echo.
|
echo.
|
||||||
|
|
||||||
echo add full access rights to all users on public icons ...
|
|
||||||
icacls %PUBLIC%\Desktop\*.lnk /grant Users:F
|
|
||||||
echo.
|
|
||||||
|
|
||||||
echo removing read-only flag on tools folder ...
|
|
||||||
attrib /S /D -R %TOOLS%\*
|
|
||||||
echo.
|
|
||||||
|
|
||||||
echo #####################
|
echo #####################
|
||||||
echo ### DISABLE tasks ###
|
echo ### DISABLE tasks ###
|
||||||
echo #####################
|
echo #####################
|
||||||
@ -234,6 +226,14 @@ rem ... remove stupid public folders
|
|||||||
call cleanup-publicdir.cmd
|
call cleanup-publicdir.cmd
|
||||||
echo.
|
echo.
|
||||||
|
|
||||||
|
echo add read access rights to all users on public icons ...
|
||||||
|
icacls %PUBLIC%\Desktop\*.lnk /grant Users:R
|
||||||
|
echo.
|
||||||
|
|
||||||
|
echo removing read-only flag on tools folder ...
|
||||||
|
attrib /S /D -R %TOOLS%\*
|
||||||
|
echo.
|
||||||
|
|
||||||
date /t
|
date /t
|
||||||
time /t
|
time /t
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
||||||
|
Loading…
Reference in New Issue
Block a user