Disassembler0 / Win10-Initial-Setup-Script

PowerShell script for automation of routine tasks done after fresh installations of Windows 10 / Server 2016 / Server 2019
MIT License
4.69k stars 1.08k forks source link

Enhancement: Defender Cloud, use Set-MpPreference instead of registry hack #266

Closed ghost closed 4 years ago

ghost commented 4 years ago

The functions DisableDefenderCloud and EnableDefenderCloud use a registry hack approach for to perform its goals.

It is possible to use these PowerShell command Set-MpPreference -MAPSReporting … and Set-MpPreference -SubmitSamplesConsent ... for to obtain same results.

Advantages:

Disassembler0 commented 4 years ago

That "hack" is a documented group policy setting. :)

Couterpoints:

ghost commented 4 years ago

That "hack" is a documented group policy setting. :)

I didn't know, my lack :)

All counterpoints are clear and winning, definitely. Thanks for sharing the reasons.