We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4631fc7 commit 39ff59cCopy full SHA for 39ff59c
powershell-adapter/psDscAdapter/psDscAdapter.psm1
@@ -6,7 +6,7 @@
6
# PSDesiredStateConfiguration 2.0.7 module will be saved in the DSC build
7
# in Windows PowerShell, we should always use version 1.1 that ships in Windows
8
if ($PSVersionTable.PSVersion.Major -gt 5) {
9
- $PSDesiredStateConfiguration = Import-Module -Path '../PSDesiredStateConfiguration/2.0.7/PSDesiredStateConfiguration.psd1' -Force -PassThru
+ $PSDesiredStateConfiguration = Import-Module "$PSScriptRoot/../PSDesiredStateConfiguration/2.0.7/PSDesiredStateConfiguration.psd1" -Force -PassThru
10
}
11
else {
12
$env:PSModulePath += ";$env:windir\System32\WindowsPowerShell\v1.0\Modules"
0 commit comments