Added -ErrorAction SilentlyContinue to lines 288-293

This commit is contained in:
Richard Newton 2018-03-02 21:00:14 -08:00 committed by GitHub
parent 9c7d563fcf
commit f16cc2705f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -285,12 +285,12 @@ Function Revert-Changes {
#Re-enables scheduled tasks that were disabled when running the Debloat switch
Write-Output "Enabling scheduled tasks that were disabled"
Get-ScheduledTask -TaskName XblGameSaveTaskLogon | Enable-ScheduledTask
Get-ScheduledTask -TaskName XblGameSaveTask | Enable-ScheduledTask
Get-ScheduledTask -TaskName Consolidator | Enable-ScheduledTask
Get-ScheduledTask -TaskName UsbCeip | Enable-ScheduledTask
Get-ScheduledTask -TaskName DmClient | Enable-ScheduledTask
Get-ScheduledTask -TaskName DmClientOnScenarioDownload | Enable-ScheduledTask
Get-ScheduledTask -TaskName XblGameSaveTaskLogon | Enable-ScheduledTask -ErrorAction SilentlyContinue
Get-ScheduledTask -TaskName XblGameSaveTask | Enable-ScheduledTask -ErrorAction SilentlyContinue
Get-ScheduledTask -TaskName Consolidator | Enable-ScheduledTask -ErrorAction SilentlyContinue
Get-ScheduledTask -TaskName UsbCeip | Enable-ScheduledTask -ErrorAction SilentlyContinue
Get-ScheduledTask -TaskName DmClient | Enable-ScheduledTask -ErrorAction SilentlyContinue
Get-ScheduledTask -TaskName DmClientOnScenarioDownload | Enable-ScheduledTask -ErrorAction SilentlyContinue
}
Function Enable-EdgePDF {