File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
powershell-adapter/psDscAdapter Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -392,6 +392,9 @@ function Invoke-DscOperation {
392
392
}
393
393
catch {
394
394
$_.Exception | Format-List * - Force | Out-String | Write-DscTrace - Operation Debug
395
+ if ($_.Exception.MessageId -eq ' DscResourceNotFound' ) {
396
+ Write-DscTrace - Operation Warn - Message ' For Windows PowerShell, DSC resources must be installed with scope AllUsers'
397
+ }
395
398
' Exception: ' + $_.Exception.Message | Write-DscTrace - Operation Error
396
399
exit 1
397
400
}
@@ -446,7 +449,10 @@ function Invoke-DscOperation {
446
449
}
447
450
}
448
451
catch {
449
-
452
+ $_.Exception | Format-List * - Force | Out-String | Write-DscTrace - Operation Debug
453
+ if ($_.Exception.MessageId -eq ' DscResourceNotFound' ) {
454
+ Write-DscTrace - Operation Warn - Message ' For Windows PowerShell, DSC resources must be installed with scope AllUsers'
455
+ }
450
456
' Exception: ' + $_.Exception.Message | Write-DscTrace - Operation Error
451
457
exit 1
452
458
}
You can’t perform that action at this time.
0 commit comments