Skip to content

Commit 2eee79a

Browse files
committed
Correct module import in xScheduledTask
1 parent 5d34c96 commit 2eee79a

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

DSCResources/MSFT_xScheduledTask/MSFT_xScheduledTask.psm1

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,17 @@ namespace xScheduledTask
1414
}
1515
'@
1616

17-
Import-Module -Name (Join-Path -Path (Split-Path -Path $PSScriptRoot -Parent) `
18-
-ChildPath 'CommonResourceHelper.psm1')
17+
$modulePath = Join-Path -Path (Split-Path -Path (Split-Path -Path $PSScriptRoot -Parent) -Parent) -ChildPath 'Modules'
18+
19+
# Import the ComputerManagementDsc Common Modules
20+
Import-Module -Name (Join-Path -Path $modulePath `
21+
-ChildPath (Join-Path -Path 'ComputerManagementDsc.Common' `
22+
-ChildPath 'ComputerManagementDsc.Common.psm1'))
23+
24+
# Import the ComputerManagementDsc Resource Helper Module
25+
Import-Module -Name (Join-Path -Path $modulePath `
26+
-ChildPath (Join-Path -Path 'ComputerManagementDsc.ResourceHelper' `
27+
-ChildPath 'ComputerManagementDsc.ResourceHelper.psm1'))
1928

2029
<#
2130
.SYNOPSIS

0 commit comments

Comments
 (0)