W4RH4WK / Debloat-Windows-10

A Collection of Scripts Which Disable / Remove Windows 10 Features and Apps
Other
6.03k stars 851 forks source link

Re-enable Windows Defender? #240

Closed chrisvtheactivist closed 4 years ago

chrisvtheactivist commented 4 years ago

Hey I did the script and it worked, however I realized that I actually wanted windows defender. Is there a way to get it back?

W4RH4WK commented 4 years ago

Have a look at disable-windows-defender.ps1. It disables scheduled tasks and services and adds some group policy entries.

First clear the group policy entries, then re-enable the services, then re-enable the scheduled tasks. Restart and you should be good to go.

chrisvtheactivist commented 4 years ago

Sorry I am not well versed in this kind of stuff. So to be clear, delete the section starting with "Disabling Windows Defender via Group Policies" and then change every "AutorunsDisabled" to "AutorunsEnabled" in the "Disabling Windows Defender Services?"

W4RH4WK commented 4 years ago

No, to it manually, not via the script:

Open the group policy editor, navigate to Windows Components and go through each Windows Defender folder, resetting all entries. Should only be a handful. You notice them as the state says something different than Not configured.

image

In the services control panel, re-enable the services with Windows Defender in their name.

image

In the scheduled tasks control panel, re-enable the corresponding scheduled tasks. Found in Microsoft > Windows > Windows Defender.

image

chrisvtheactivist commented 4 years ago

Thank you!

Un1q32 commented 1 year ago

The group policy editor is only available in windows 10 pro, most users who get windows with their computer (like me) have windows 10 home. Please provide instructions for reverting the change without the group policy editor or just provide a script to re enable windows defender.

W4RH4WK commented 1 year ago

Windows 10 Home is not supported by this project. You can find some guides online on where the corresponding registry keys are located.