Skip to content

Commit 65c3cc8

Browse files
committed
Finishing touches
1 parent 41d6501 commit 65c3cc8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

DSCResources/MSFT_xScheduledTask/MSFT_xScheduledTask.psm1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,7 @@ function Get-TargetResource
624624
TaskPath = $TaskPath
625625
StartTime = $startAt
626626
Ensure = "Present"
627+
Description = $task.Description
627628
ActionExecutable = $action.Execute
628629
ActionArguments = $action.Arguments
629630
ActionWorkingPath = $action.WorkingDirectory
@@ -647,7 +648,7 @@ function Get-TargetResource
647648
NetworkName = $settings.NetworkSettings.Name
648649
DisallowStartOnRemoteAppSession = $settings.DisallowStartOnRemoteAppSession
649650
StartWhenAvailable = $settings.StartWhenAvailable
650-
DontStopIfGoingOnBatteries = $settings.DontStopIfGoingOnBatteries
651+
DontStopIfGoingOnBatteries = -not $settings.StopIfGoingOnBatteries
651652
WakeToRun = $settings.WakeToRun
652653
IdleDuration = [datetime]::Today.Add($idleDurationReturn)
653654
RestartOnIdle = $settings.IdleSettings.RestartOnIdle

0 commit comments

Comments
 (0)