Skip to content

Commit c661535

Browse files
Vasily LarionovVasily Larionov
authored andcommitted
TaskPath: Fixed empty string
1 parent c8d6dcc commit c661535

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

DSCResources/MSFT_xScheduledTask/MSFT_xScheduledTask.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function Get-TargetResource
4949
$ExecuteAsCredential
5050
)
5151

52-
if($TaskPath -eq '\')
52+
if(($TaskPath -eq '\') -or ($TaskPath.Length -eq 0))
5353
{
5454
$fixedTaskPath = '\'
5555
}

0 commit comments

Comments
 (0)