diff --git a/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 index 1c043f01..1fae2e3b 100644 --- a/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 @@ -1388,7 +1388,7 @@ function ErrorReporting { 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 } @@ -1397,7 +1397,7 @@ function ErrorReporting } "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 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 # 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 Get-Service -Name WerSvc | Set-Service -StartupType Manual diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 index a5b3ff7b..c12bb4da 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 @@ -1345,7 +1345,7 @@ function ErrorReporting { 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 } @@ -1354,7 +1354,7 @@ function ErrorReporting } "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 Get-Service -Name WerSvc | Set-Service -StartupType Manual diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 index 0b0d75b8..ab13febf 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 @@ -1345,7 +1345,7 @@ function ErrorReporting { 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 } @@ -1354,7 +1354,7 @@ function ErrorReporting } "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 Get-Service -Name WerSvc | Set-Service -StartupType Manual @@ -7068,7 +7068,7 @@ function RecommendedTroubleshooting Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\DataCollection -Name AllowTelemetry -Type DWORD -Value 3 # 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 Get-Service -Name WerSvc | Set-Service -StartupType Manual diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 index 9e06510e..8109a2fd 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 @@ -1392,7 +1392,7 @@ function ErrorReporting { 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 } @@ -1401,7 +1401,7 @@ function ErrorReporting } "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 Get-Service -Name WerSvc | Set-Service -StartupType Manual @@ -8089,7 +8089,7 @@ function RecommendedTroubleshooting Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\DataCollection -Name AllowTelemetry -Type DWORD -Value 3 # 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 Get-Service -Name WerSvc | Set-Service -StartupType Manual diff --git a/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 index 87bb17a8..3080f4c5 100644 --- a/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 @@ -1362,7 +1362,7 @@ function ErrorReporting { 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 } @@ -1371,7 +1371,7 @@ function ErrorReporting } "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 Get-Service -Name WerSvc | Set-Service -StartupType Manual @@ -7874,7 +7874,7 @@ function RecommendedTroubleshooting Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\DataCollection -Name AllowTelemetry -Type DWORD -Value 3 # 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 Get-Service -Name WerSvc | Set-Service -StartupType Manual diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 index b60ca67e..99f937f3 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 @@ -1380,7 +1380,7 @@ function ErrorReporting { 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 } @@ -1389,7 +1389,7 @@ function ErrorReporting } "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 Get-Service -Name WerSvc | Set-Service -StartupType Manual @@ -7894,7 +7894,7 @@ function RecommendedTroubleshooting Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\DataCollection -Name AllowTelemetry -Type DWORD -Value 3 # 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 Get-Service -Name WerSvc | Set-Service -StartupType Manual