Skip to content

Commit

Permalink
Issue-dsccommunity#333 Add new lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob-S committed Jun 17, 2020
1 parent a3f5a28 commit abb57a1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/DSCResources/DSC_ScheduledTask/DSC_ScheduledTask.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -1829,8 +1829,10 @@ 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 ($task.settings.CimInstanceProperties.Item('MultipleInstances').Value -eq 3) {
if ($MultipleInstances -eq $NULL)
{
if ($task.settings.CimInstanceProperties.Item('MultipleInstances').Value -eq 3)
{
$MultpleInstances = 'StopExisting'
}
}
Expand Down

0 comments on commit abb57a1

Please sign in to comment.