需要進一步分析時發送檔案樣本 的登錄值 SubmitSamplesConsent電腦HKLM\Software\Policies\Microsoft\Windows Defender\Spynet
- 原則 ID
- SubmitSamplesConsent
- 適用範圍
- 電腦設定
- 支援的作業系統
- 至少需要 Windows Vista
- 來源
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (版本 1.0)
- 類別
- Windows 元件 › Microsoft Defender 防毒軟體 › MAPS
登錄
SubmitSamplesConsent
-電腦SubmitSamplesConsent
REG_DWORD電腦- 啟用時的值
- 取決於選項值
- 元素
- 需要進一步分析時發送檔案樣本
| 項目 | 儲存的值 |
|---|---|
| 永遠提示 | 0 |
| 傳送安全的樣本 | 1 |
| 從不發送 | 2 |
| 發送所有樣本 | 3 |
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender\Spynet] ; 選項 (只使用其中一個) ; 永遠提示 "SubmitSamplesConsent"=dword:00000000 ; 傳送安全的樣本 "SubmitSamplesConsent"=dword:00000001 ; 從不發送 "SubmitSamplesConsent"=dword:00000002 ; 發送所有樣本 "SubmitSamplesConsent"=dword:00000003
CMD
:: 選項 (只使用其中一個) :: 永遠提示 reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Spynet" /v "SubmitSamplesConsent" /t REG_DWORD /d 0 /f :: 傳送安全的樣本 reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Spynet" /v "SubmitSamplesConsent" /t REG_DWORD /d 1 /f :: 從不發送 reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Spynet" /v "SubmitSamplesConsent" /t REG_DWORD /d 2 /f :: 發送所有樣本 reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Spynet" /v "SubmitSamplesConsent" /t REG_DWORD /d 3 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows Defender\Spynet' -Force | Out-Null # 選項 (只使用其中一個) # 永遠提示 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows Defender\Spynet' -Name 'SubmitSamplesConsent' -PropertyType DWord -Value 0 -Force | Out-Null # 傳送安全的樣本 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows Defender\Spynet' -Name 'SubmitSamplesConsent' -PropertyType DWord -Value 1 -Force | Out-Null # 從不發送 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows Defender\Spynet' -Name 'SubmitSamplesConsent' -PropertyType DWord -Value 2 -Force | Out-Null # 發送所有樣本 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows Defender\Spynet' -Name 'SubmitSamplesConsent' -PropertyType DWord -Value 3 -Force | Out-Null