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