File tree Expand file tree Collapse file tree
DSCResources/MSFT_xScheduledTask Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments