Jump to content

Recommended Posts

Posted

Jak w temacie. Zależy mi na tym by to było na w miarę aktualnej wersji (20H2 bądź nowsza). Ewentualnie jakiś skrypt, program, który pozwala na te modyfikacje. Przejrzałem trochę internetu i niestety jedynie udało mi się zrealizować część tego co zakładałem, tj. permanentne zablokowanie Defendera. Windows Update niestety się uruchomił po około tygodniu i nie dał się wyłączyć.
Użyłem do tego podstawowej konfiguracji z [Zawartość widoczna tylko dla zalogowanych użytkowników] oraz zablokowania Defendera i Update tym skryptem ale niestety to nie wystarczyło.  (Bazą był Windows 10 LTSC 2021 bo z Pro i Home trzeba jeszcze więcej zachodu by doprowadzić je do porządku. Z tego względu preferowałbym coś na LTSC).

W skrócie, chce osiągnąć po prostu czystego Windowsa 10 (najlepiej LTSC), w którym ani Defender ani Windows Update nie zaczną działać same z siebie.

 

Za udzieloną pomoc dziękuję z wyprzedzeniem. ;)

Posted

Coś  kiepsko szukałeś  ?  jest tego w sieci  całe  " kilogramy "  przykładów .

Takie  zastosowanie jak Ty byś chciał  to się robi z innej " parafii "  ale  dla Twojego poziomu wiedzy zastosuj to :  

 

 

@echo off

title Disable/Enable Windows Defender
color 1f
:Begin UAC check and Auto-Elevate Permissions
:-------------------------------------
REM  --> Check for permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"

REM --> If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (
echo:
echo   Requesting Administrative Privileges...
echo   Press YES in UAC Prompt to Continue
echo:

    goto UACPrompt
) else ( goto gotAdmin )

:UACPrompt
    echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
    echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"

    "%temp%\getadmin.vbs"
    exit /B

:gotAdmin
    if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" )
    pushd "%CD%"
    CD /D "%~dp0"
:--------------------------------------

:Check the key:
(reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" /v "DisableAntiSpyware"|find /i "0x1")>NUL 2>NUL
if %errorlevel% neq 0 GOTO :KEYOFF

:KEYON
echo ============================================================
echo Windows Defender currently disabled.
echo Would you like to re-enable it? (Y/N)
echo ============================================================
echo.
choice /c yn /n
If %ERRORLEVEL% NEQ 1 GOTO :QUIT

Echo Changing Registry key
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" /v "DisableAntiSpyware" /D 0 /T REG_DWORD /F>NUL 2>NUL
IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
Echo.

Echo Windows Defender enabled
Echo.
goto :QUIT


:KEYOFF
echo ============================================================
echo Windows Defender is currently enabled.
echo Would you like to disable it? (Y/N)
echo ============================================================
echo.
choice /c yn /n
If %ERRORLEVEL% NEQ 1 GOTO :QUIT

Echo Changing Registry key
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" /v "DisableAntiSpyware" /D 1 /T REG_DWORD /F>NUL 2>NUL
IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
Echo.

Echo Windows Defender disabled
Echo.
goto :QUIT


:QUIT
echo ============================================================
echo Press any key to exit...
echo ============================================================
pause>NUL
goto :EOF

:ERROR
echo ============================================================
echo The script ran into an unexpected error setting reg key.
echo Press any key to exit...
echo ============================================================
pause>NUL
goto :EOF

 

skopiować  i wkleić     do notatnika i zapisać   :  WinDefender-Enable_Disable-Win10.cmd   uruchomić przez prawo klik  jako administrator  resztę to już chyba doczytasz ?

 

i drugie

 

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate]
"DisableWUfBSafeguards"=dword:00000001
"ExcludeWUDriversInQualityUpdate"=dword:00000001
"TargetReleaseVersion"=dword:00000001
"DoNotConnectToWindowsUpdateInternetLocations"=dword:00000001
"AllowAutoWindowsUpdateDownloadOverMeteredNetwork"=dword:00000000
"SetAutoRestartNotificationDisable"=dword:00000001
"SetDisablePauseUXAccess"=dword:00000001
"SetDisableUXWUAccess"=dword:00000001
"ManagePreviewBuilds"=dword:00000000
"ManagePreviewBuildsPolicyValue"=dword:00000000
"DeferUpgrade"=dword:00000001
"DeferUpgradePeriod"=dword:00000001
"DeferUpdatePeriod"=dword:00000001
"WUServer"="-"
"WUStatusServer"="-"
"UpdateServiceUrlAlternate"="-"
"DisableOSUpgrade"=dword:00000001
"DisableWindowsUpdateAccess"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU]
"NoAutoUpdate"=dword:00000001
"AUOptions"=dword:00000002
"UseWUServer"=dword:00000001
"ScheduledInstallDay"=dword:00000000
"ScheduledInstallTime"=dword:00000000

 

skopiować  wkleić  do notatnika  zapisać  Wyłączyć_WU.reg   kliknąć  zatwierdzić i szafa gra.

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information