diff --git a/source/DSCResources/DSC_ScheduledTask/DSC_ScheduledTask.psm1 b/source/DSCResources/DSC_ScheduledTask/DSC_ScheduledTask.psm1 index 00a8c9e9..7a97deef 100644 --- a/source/DSCResources/DSC_ScheduledTask/DSC_ScheduledTask.psm1 +++ b/source/DSCResources/DSC_ScheduledTask/DSC_ScheduledTask.psm1 @@ -1829,7 +1829,7 @@ function Get-CurrentResource https://windowsserver.uservoice.com/forums/301869-powershell/suggestions/40685125-bug-get-scheduledtask-returns-null-for-value-of-m #> $MultipleInstances = [System.String] $settings.MultipleInstances - if ($MultipleInstances -eq $NULL) + if ([String]::IsNullOrEmpty($MultipleInstances)) { if ($task.settings.CimInstanceProperties.Item('MultipleInstances').Value -eq 3) {