Created
July 31, 2024 17:31
-
-
Save femdiya/dd9c4628cd0261e65f09d586801fa8a0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
:: https://privacy.sexy — v0.13.5 — Wed, 31 Jul 2024 16:54:15 GMT | |
:: Ensure admin privileges | |
fltmc >nul 2>&1 || ( | |
echo Administrator privileges are required. | |
PowerShell Start -Verb RunAs '%0' 2> nul || ( | |
echo Right-click on the script and select "Run as administrator". | |
pause & exit 1 | |
) | |
exit 0 | |
) | |
:: Initialize environment | |
setlocal EnableExtensions DisableDelayedExpansion | |
:: ---------------------------------------------------------- | |
:: --------Disable always running antimalware service-------- | |
:: ---------------------------------------------------------- | |
echo --- Disable always running antimalware service | |
PowerShell -ExecutionPolicy Unrestricted -Command "reg add 'HKLM\Software\Policies\Microsoft\Windows Defender' /v 'ServiceKeepAlive' /t 'REG_DWORD' /d '1' /f" | |
:: ---------------------------------------------------------- | |
:: Pause the script to view the final state | |
pause | |
:: Restore previous environment settings | |
endlocal | |
:: Exit the script successfully | |
exit /b 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment