Last active
August 13, 2025 02:06
-
-
Save phoenixthrush/7ca90e08929876bdb76c3902bd2d7607 to your computer and use it in GitHub Desktop.
Windows Defender History Deletion with UAC Elevation #Batch #RunAsAdmin #WindowsDefender
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
| if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b) | |
| rmdir "C:\ProgramData\Microsoft\Windows Defender\Scans\History" /S /Q >nul 2>&1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment