File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -98,8 +98,10 @@ function ConvertTo-DscObject
98
98
$Tokens = $null
99
99
$ParseErrors = $null
100
100
101
+ (Get-Module - Name ' PSDesiredStateConfiguration' | ConvertTo-Json ) | Write-DscTrace Debug
102
+
101
103
# Load the PSDesiredStateConfiguration module
102
- Import-Module - Name ' PSDesiredStateConfiguration' - RequiredVersion 1.1 - UseWindowsPowerShell - WarningAction SilentlyContinue - ErrorVariable $importModuleError
104
+ Import-Module - Name ' PSDesiredStateConfiguration' - RequiredVersion ' 1.1' - Force - ErrorAction stop - ErrorVariable $importModuleError
103
105
if (-not [string ]::IsNullOrEmpty($importModuleError )) {
104
106
' Could not import PSDesiredStateConfiguration 1.1 in Windows PowerShell. ' + $importModuleError | Write-DscTrace - Operation Error
105
107
exit 1
You can’t perform that action at this time.
0 commit comments