You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[Unable to parse content from `<manifestUrl>`](#unable-to-parse-content-from-manifesturl)| When authoring a resource manifest in VSCode, you may encounter parsing errors. | Confirmed |[#917](https://github.com/PowerShell/DSC/issues/917)|
20
20
|[Resource not found when using Windows PowerShell adapter](#resource-not-found-when-using-windows-powershell-adapter)| A resource cannot be found when running DSC configuration using WinPS adapter. | Confirmed |[#765](https://github.com/PowerShell/DSC/issues/765)|
21
21
@@ -83,6 +83,63 @@ included with Windows and requires separate installation.
83
83
Install all DSC resources, whether script-based and binary resources, for all users
84
84
("AllUsers" scope) to ensure they are available for the WinPS adapter.
85
85
86
+
## Validation errors when executing dsc.exe in Windows PowerShell sessions
87
+
88
+
When executing `dsc.exe` commands in Windows PowerShell sessions, you may encounter
89
+
validation errors when using manually crafted JSON input or the `ConvertTo-Json` cmdlet
90
+
with the `-Compress` parameter. This issue is related to how Windows PowerShell handles
91
+
string encoding and JSON formatting.
92
+
93
+
### Prerequisites
94
+
95
+
- Windows PowerShell session
96
+
- Direct execution of `dsc.exe` commands
97
+
- Use of JSON input via `--input` parameter
98
+
99
+
### Problem details
100
+
101
+
When running `dsc.exe` commands in Windows PowerShell, validation errors may occur
102
+
when passing JSON input to resources. This typically happens when using manually
103
+
crafted JSON strings or when using PowerShell's `ConvertTo-Json` cmdlet with the `-Compress` parameter.
104
+
105
+
Commands that work correctly:
106
+
107
+
-`dsc resource get -r PSDesiredStateConfiguration/Service --input '{ "Name": "bits" }'`
0 commit comments