Open the Local Group Policy Editor: Press Windows + R, type gpedit.msc into the Run dialog, and click “OK”.
Navigate to the Policy: Go to the following path in the left panel:
Computer Configuration → Administrative Templates → Windows Components → File Explorer
(Note: In some Windows 11 versions, this may be named “Windows Explorer” instead.)
Open the Policy Setting: In the right panel, double-click “Configure Windows Defender SmartScreen”.
Disable SmartScreen: In the window that opens, select the Disabled option and click Apply and then OK to save the changes.