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 55d4424 commit 2860da7Copy full SHA for 2860da7
extensions/powershell/convertDscResource.psm1
@@ -98,10 +98,12 @@ function ConvertTo-DscObject
98
$Tokens = $null
99
$ParseErrors = $null
100
101
+ Get-ChildItem "C:\Windows\System32\WindowsPowerShell\v1.0\Modules" | Select-Object Name | Write-DscTrace -Operation Trace
102
# Load the PSDesiredStateConfiguration module
103
Import-Module -Name 'PSDesiredStateConfiguration' -RequiredVersion '1.1' -Force -ErrorAction stop -ErrorVariable $importModuleError
104
if (-not [string]::IsNullOrEmpty($importModuleError)) {
105
'Could not import PSDesiredStateConfiguration 1.1 in Windows PowerShell. ' + $importModuleError | Write-DscTrace -Operation Error
106
+ exit 1
107
}
108
109
# Remove the module version information.
0 commit comments