Send file samples when further analysis is required: registry value SubmitSamplesConsentComputerHKLM\Software\Policies\Microsoft\Windows Defender\Spynet
- Policy ID
- SubmitSamplesConsent
- Scope
- Computer Configuration
- Supported on
- At least Windows Vista
- Source
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
- Category
- Windows Components › Microsoft Defender Antivirus › MAPS
Registry
SubmitSamplesConsent
-ComputerSubmitSamplesConsent
REG_DWORDComputer- Enabled value
- Depends on the option value
- Element
- Send file samples when further analysis is required
| Item | Stored value |
|---|---|
| Always prompt | 0 |
| Send safe samples | 1 |
| Never send | 2 |
| Send all samples | 3 |
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender\Spynet] ; Options (use only one) ; Always prompt "SubmitSamplesConsent"=dword:00000000 ; Send safe samples "SubmitSamplesConsent"=dword:00000001 ; Never send "SubmitSamplesConsent"=dword:00000002 ; Send all samples "SubmitSamplesConsent"=dword:00000003
CMD
:: Options (use only one) :: Always prompt reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Spynet" /v "SubmitSamplesConsent" /t REG_DWORD /d 0 /f :: Send safe samples reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Spynet" /v "SubmitSamplesConsent" /t REG_DWORD /d 1 /f :: Never send reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Spynet" /v "SubmitSamplesConsent" /t REG_DWORD /d 2 /f :: Send all samples reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Spynet" /v "SubmitSamplesConsent" /t REG_DWORD /d 3 /f
PowerShell
# Common: create the key New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows Defender\Spynet' -Force | Out-Null # Options (use only one) # Always prompt New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows Defender\Spynet' -Name 'SubmitSamplesConsent' -PropertyType DWord -Value 0 -Force | Out-Null # Send safe samples New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows Defender\Spynet' -Name 'SubmitSamplesConsent' -PropertyType DWord -Value 1 -Force | Out-Null # Never send New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows Defender\Spynet' -Name 'SubmitSamplesConsent' -PropertyType DWord -Value 2 -Force | Out-Null # Send all samples New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows Defender\Spynet' -Name 'SubmitSamplesConsent' -PropertyType DWord -Value 3 -Force | Out-Null