|
@ -1388,7 +1388,7 @@ function ErrorReporting |
|
|
{ |
|
|
{ |
|
|
if ((Get-WindowsEdition -Online).Edition -notmatch "Core") |
|
|
if ((Get-WindowsEdition -Online).Edition -notmatch "Core") |
|
|
{ |
|
|
{ |
|
|
Get-ScheduledTask -TaskName QueueReporting | Disable-ScheduledTask |
|
|
Get-ScheduledTask -TaskName QueueReporting -ErrorAction Ignore | Disable-ScheduledTask |
|
|
New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\Windows Error Reporting" -Name Disabled -PropertyType DWord -Value 1 -Force |
|
|
New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\Windows Error Reporting" -Name Disabled -PropertyType DWord -Value 1 -Force |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -1397,7 +1397,7 @@ function ErrorReporting |
|
|
} |
|
|
} |
|
|
"Enable" |
|
|
"Enable" |
|
|
{ |
|
|
{ |
|
|
Get-ScheduledTask -TaskName QueueReporting | Enable-ScheduledTask |
|
|
Get-ScheduledTask -TaskName QueueReporting -ErrorAction Ignore | Enable-ScheduledTask |
|
|
Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\Windows Error Reporting" -Name Disabled -Force -ErrorAction Ignore |
|
|
Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\Windows Error Reporting" -Name Disabled -Force -ErrorAction Ignore |
|
|
|
|
|
|
|
|
Get-Service -Name WerSvc | Set-Service -StartupType Manual |
|
|
Get-Service -Name WerSvc | Set-Service -StartupType Manual |
|
@ -8083,7 +8083,7 @@ function RecommendedTroubleshooting |
|
|
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\DataCollection -Name AllowTelemetry -Type DWORD -Value 3 |
|
|
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\DataCollection -Name AllowTelemetry -Type DWORD -Value 3 |
|
|
|
|
|
|
|
|
# Turn on Windows Error Reporting |
|
|
# Turn on Windows Error Reporting |
|
|
Get-ScheduledTask -TaskName QueueReporting | Enable-ScheduledTask |
|
|
Get-ScheduledTask -TaskName QueueReporting -ErrorAction Ignore | Enable-ScheduledTask |
|
|
Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\Windows Error Reporting" -Name Disabled -Force -ErrorAction Ignore |
|
|
Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\Windows Error Reporting" -Name Disabled -Force -ErrorAction Ignore |
|
|
|
|
|
|
|
|
Get-Service -Name WerSvc | Set-Service -StartupType Manual |
|
|
Get-Service -Name WerSvc | Set-Service -StartupType Manual |
|
|