Skip to content

Commit 2860da7

Browse files
committed
Debug agent
1 parent 55d4424 commit 2860da7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

extensions/powershell/convertDscResource.psm1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,12 @@ function ConvertTo-DscObject
9898
$Tokens = $null
9999
$ParseErrors = $null
100100

101+
Get-ChildItem "C:\Windows\System32\WindowsPowerShell\v1.0\Modules" | Select-Object Name | Write-DscTrace -Operation Trace
101102
# Load the PSDesiredStateConfiguration module
102103
Import-Module -Name 'PSDesiredStateConfiguration' -RequiredVersion '1.1' -Force -ErrorAction stop -ErrorVariable $importModuleError
103104
if (-not [string]::IsNullOrEmpty($importModuleError)) {
104105
'Could not import PSDesiredStateConfiguration 1.1 in Windows PowerShell. ' + $importModuleError | Write-DscTrace -Operation Error
106+
exit 1
105107
}
106108

107109
# Remove the module version information.

0 commit comments

Comments
 (0)