We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 881326e + 7312308 commit 8ec8e4bCopy full SHA for 8ec8e4b
1 file changed
DSCResources/MSFT_xScheduledTask/MSFT_xScheduledTask.psm1
@@ -100,6 +100,11 @@ function Get-TargetResource
100
$returnScheduleType = "Daily"
101
[System.Uint32]$returnInveral = $repetition.Interval -replace "P" -replace "D"
102
}
103
+ if ($repetition.Duration -eq $null -and $repetition.Interval -like "P*D*")
104
+ {
105
+ $returnScheduleType = "Daily"
106
+ [System.Uint32]$returnInveral = $repetition.Interval.Substring(0, $repetition.Interval.IndexOf('D')) -replace "P"
107
+ }
108
if (($repetition.Duration -eq "P1D" -or $repetition.Duration -eq $null) `
109
-and $repetition.Interval -like "PT*H")
110
{
0 commit comments