Write-Status-Types"?",$TweakType-Status"The $ScheduledTask($((Get-ScheduledTask$ScheduledTask).TaskName)) will be skipped as set on Filter..."-Warning
Write-Status-Types"?",$TweakType-Status"The $ScheduledTasktask was not found."-Warning
Continue
Continue
}
}
If(!$CustomMessage){
If($ScheduledTask-in$Filter){
If($Disabled){
Write-Status-Types"?",$TweakType-Status"The $ScheduledTask ($((Get-ScheduledTask$ScheduledTask).TaskName)) will be skipped as set on Filter..."-Warning
Write-Status-Types"-",$TweakType-Status"Disabling the $ScheduledTask task..."
Continue
}ElseIf($Ready){
Write-Status-Types"+",$TweakType-Status"Enabling the $ScheduledTask task..."
}Else{
Write-Status-Types"?",$TweakType-Status"No parameter received (valid params: -Disabled or -Ready)"-Warning
Set-ScheduledTaskState-Disabled-ScheduledTasks@("ScheduledTask1","ScheduledTask2","ScheduledTask3")-Filter@("ScheduledTask3")-CustomMessage{"Setting $ScheduledTask as Disabled!"}
Set-ScheduledTaskState-Ready-ScheduledTasks@("ScheduledTask1","ScheduledTask2","ScheduledTask3")-Filter@("ScheduledTask3")-CustomMessage{"Setting $ScheduledTask as Ready!"}
Write-Status-Types"?",$TweakType-Status"Skipping $OptionalFeature ($((Get-WindowsOptionalFeature-Online-FeatureName$OptionalFeature).DisplayName)) to avoid a security vulnerability..."-Warning
Write-Status-Types"?",$TweakType-Status"Skipping $OptionalFeature ($((Get-WindowsOptionalFeature-Online-FeatureName$OptionalFeature).DisplayName)) to avoid a security vulnerability..."-Warning