Disable crash reporting (#826)

* disable jit debugger

* override settings asfter vs installation
This commit is contained in:
Aleksandr Chebotov
2020-05-06 09:44:53 +03:00
committed by Mikhail Timofeev
parent e132f308cc
commit 05d8b9e003
3 changed files with 28 additions and 0 deletions

View File

@@ -944,6 +944,12 @@
"{{ template_dir }}/scripts/Installers/Configure-Antivirus.ps1" "{{ template_dir }}/scripts/Installers/Configure-Antivirus.ps1"
] ]
}, },
{
"type": "powershell",
"scripts":[
"{{ template_dir }}/scripts/Installers/Disable-JITDebugger.ps1"
]
},
{ {
"type": "powershell", "type": "powershell",
"inline": [ "inline": [

View File

@@ -947,6 +947,12 @@
"{{ template_dir }}/scripts/Installers/Configure-Antivirus.ps1" "{{ template_dir }}/scripts/Installers/Configure-Antivirus.ps1"
] ]
}, },
{
"type": "powershell",
"scripts":[
"{{ template_dir }}/scripts/Installers/Disable-JITDebugger.ps1"
]
},
{ {
"type": "powershell", "type": "powershell",
"inline": [ "inline": [

View File

@@ -0,0 +1,16 @@
Write-Host "Disable Just-In-Time Debugger"
# Turn off Application Error Debugger
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug" -Name Debugger -Value "-" -Type String -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows NT\CurrentVersion\AeDebug" -Name Debugger -Value "-" -Type String -Force
# Turn off the Debug dialog
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\.NETFramework" -Name DbgManagedDebugger -Value "-" -Type String -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Microsoft\.NETFramework" -Name DbgManagedDebugger -Value "-" -Type String -Force
# Disable the WER UI
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\Windows Error Reporting" -Name DontShowUI -Value 1 -Type DWORD -Force
# Send all reports to the user's queue
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\Windows Error Reporting" -Name ForceQueue -Value 1 -Type DWORD -Force
# Default consent choice 1 - Always ask (default)
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\Windows Error Reporting\Consent" -Name DefaultConsent -Value 1 -Type DWORD -Force