Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Win_Defender_Revert script does not reset Defender to defaults #253

Open
bbrendon opened this issue Sep 5, 2024 · 2 comments
Open

Win_Defender_Revert script does not reset Defender to defaults #253

bbrendon opened this issue Sep 5, 2024 · 2 comments

Comments

@bbrendon
Copy link
Contributor

bbrendon commented Sep 5, 2024

Windows Defender reset to default configuration

The script appears to be taken from huntress which only reverts huntress settings.

@silversword411
Copy link
Contributor

I'm guessing you're trying to reset options/preferences back to what windows does OOBE?
Of course there's a bunch of HKCU sessions, and some that are HKLM settings....and you're probably not referring to just the Security panel?
https://www.thewindowsclub.com/reset-windows-security-app-in-windows-10
Get-AppxPackage *Microsoft.Windows.SecHealthUI* | Reset-AppxPackage

Based on some searches I don't think Microsoft has a Defender reset script, let me know if you find one though.

I'm thinking you'd have to query every setting from a virgin install home...and manually make them the same.
Then profile for pro.
Then OS detect, and rewrite each setting appropriately...
Then because notifications are custom HKCU reset all those values for notifications...

Whadda PITA.

@bbrendon
Copy link
Contributor Author

bbrendon commented Sep 9, 2024

I'm not trying to do anything. I was looking at some huntress scripts and thought to my self... "this script seems familiar!!"
Searched here and one look at the script screamed "BS" :)

Off the top of my head, I think it would be very difficult to reset defender to factory defaults. I haven't tried or needed to yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants