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