Konfiguruj domyślne ustawienia zgody: wartość rejestru DefaultConsent (HKLM Consent)KomputerHKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent
- Identyfikator zasady
- WerDefaultConsent_2
- Zakres
- Konfiguracja komputera
- Obsługiwane w systemach
- Tylko Windows 8.1, Windows 8, Windows 7 i Windows Vista
- Źródło
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (wersja 1.0)
- Kategoria
- Składniki systemu Windows › Raportowanie błędów systemu Windows › Zgoda
Rejestr
DefaultConsent
REG_DWORDKomputer- Wartość włączona
- Zależy od wartości opcji
- Element
- Poziom zgody
| Pozycja | Zapisana wartość |
|---|---|
| Zawsze pytaj przed wysłaniem danych | 1 |
| Wyślij parametry | 2 |
| Wyślij parametry i bezpieczne dane dodatkowe | 3 |
| Wyślij wszystkie dane | 4 |
Zastosuj przez .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent] ; Opcje (użyj tylko jednej) ; Zawsze pytaj przed wysłaniem danych "DefaultConsent"=dword:00000001 ; Wyślij parametry "DefaultConsent"=dword:00000002 ; Wyślij parametry i bezpieczne dane dodatkowe "DefaultConsent"=dword:00000003 ; Wyślij wszystkie dane "DefaultConsent"=dword:00000004
CMD
:: Opcje (użyj tylko jednej) :: Zawsze pytaj przed wysłaniem danych reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent" /v "DefaultConsent" /t REG_DWORD /d 1 /f :: Wyślij parametry reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent" /v "DefaultConsent" /t REG_DWORD /d 2 /f :: Wyślij parametry i bezpieczne dane dodatkowe reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent" /v "DefaultConsent" /t REG_DWORD /d 3 /f :: Wyślij wszystkie dane reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent" /v "DefaultConsent" /t REG_DWORD /d 4 /f
PowerShell
# Wspólne: utwórz klucz New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent' -Force | Out-Null # Opcje (użyj tylko jednej) # Zawsze pytaj przed wysłaniem danych New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent' -Name 'DefaultConsent' -PropertyType DWord -Value 1 -Force | Out-Null # Wyślij parametry New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent' -Name 'DefaultConsent' -PropertyType DWord -Value 2 -Force | Out-Null # Wyślij parametry i bezpieczne dane dodatkowe New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent' -Name 'DefaultConsent' -PropertyType DWord -Value 3 -Force | Out-Null # Wyślij wszystkie dane New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent' -Name 'DefaultConsent' -PropertyType DWord -Value 4 -Force | Out-Null