Skip to content

Commit

Permalink
Merge pull request #3 from julerobb1/revert-2-dev
Browse files Browse the repository at this point in the history
Revert "Update defender script.txt"
  • Loading branch information
julerobb1 authored Jul 7, 2024
2 parents 0d8a228 + 2acad36 commit 4f6a8d7
Showing 1 changed file with 23 additions and 36 deletions.
59 changes: 23 additions & 36 deletions defender script.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,55 +14,42 @@ takeown /f "Windows Defender" /r
pause


rem for the next part you may have to manually say yes to everything. Just type the letter y and you'll be set if you see it asking you. Based off experience, you should not have to interact with it.
rem for the next part you may have to manually say yes to everything. Just type the letter y and you'll be set if you see it asking you.

del /f "*" /s
erase /f "*" /s /q
dir
cd ..
cd "Windows Defender Advanced Threat Protection"
icacls * /grant %username%:f :r
icacls "Windows Defender Advanced Threat Protection" /grant %username%:f :r
takeown /f "Windows Defender Advanced Threat Protection" /r





pause

cd ..
cd /
cd C:/ProgramData/Microsoft

IF EXIST "C:/ProgramData/Microsoft/"Windows Defender" (
icacls "Windows Defender" /grant %username%:f :r
takeown /f "Windows Defender" /r

cd ..
IF EXIST "C:/ProgramData/Microsoft/"Windows Defender Advanced Threat Protection"
icacls "Windows Defender Advanced Threat Protection" /grant %username%:f :r
takeown /f Windows Defender Advanced Threat Protection /r
cd..

)else(
IF NOT EXIST "C:/ProgramData/Microsoft/please"
echo Renaming Main Windows Defender Folder
IF EXIST "C:/ProgramData
ren "Windows Defender" please
ren "Windows Defender Advanced Threat Protection" fruitsnackia
icacls "please" /grant %username%:f :r
takeown /f "please" /r
cd ..
IF NOT EXIST "C:/ProgramData/Microsoft/"fruitsnackia"
echo Renaming Windows Defender ATP folder
ren "Windows Defender Advanced Threat Protection" fruitsnackia
icacls "please" /grant %username%:f :r
takeown /f please /r
icacls fruitsnackia /grant %username%:f :r
takeown /f "fruitsnackia" /r
cd..

)else(

IF EXIST C:/ProgramData/Microsoft/fruitsnackia
ECHO deleting renamed Windows Defender ATP folder
erase /f C:/ProgramData/Microsoft/fruitsnackia /s /q
erase /f C:/ProgramData/Microsoft/fruitsnackia/* /s /q

IF EXIST C:/ProgramData/Microsoft/please
ECHO deleting renamed Windows Defender folder
erase /f C:/ProgramData/Microsoft/please/* /s /q
erase /f C:/ProgramData/Microsoft/please /s /q

)

IF EXIST C:/Program Files (x86)/Windows Defender
IF EXIST C:/
REM Fruitsnackia..... OMNOMNOM! (if you don't know what this is a reference to... I dont like you, respectfully. Google it if you have a chance.... OK OK I hear you.. back to the task at hand. No need to get all bossy!)

erase /f fruitsnackia /s /q
erase /f fruitsnackia/*

REM Fruitsnackia..... OMNOMNOM!



Expand Down

0 comments on commit 4f6a8d7

Please sign in to comment.