DSC seems to inject "Verbose" key into resource properties, causing an error when "Verbose" is not a property in the DSC resource schema file
Los mantenedores suelen responder en 1 día
@theJasonHelmick ya está trabajando en esto.
Desde el 22/1/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest version
- Search the existing issues.
Summary
Attempting to test deploy a microsoft365DSC resource: "Microsoft365DSC/IntuneDeviceConfigurationPlatformScriptWindows"
Fails with an error stating:
Exception: The PowerShell DSC resource returned results that are not valid from Get-TargetResource.
The Verbose key is not a valid property in the corresponding DSC resource schema file. The results
from Get-TargetResource must be in a Hashtable format. The keys in the Hashtable must be the same as
the properties in the corresponding DSC resource schema file.
I haven't added the key "Verbose", it seems to be a default behaviour of the adapter that I can't turn off.
Steps to reproduce
-
Write config document, no Verbose key included:
$schema: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2024/04/config/document.json resources: - name: Intune Test type: Microsoft.Windows/WindowsPowerShell properties: resources: - name: Test-Intune-Script type: Microsoft365DSC/IntuneDeviceConfigurationPlatformScriptWindows properties: Id: "34cedb35-7569-4d20-acbc-81c12c2d9507" DisplayName: "TestCustomScript" Ensure: "Present" EnforceSignatureCheck: false FileName: "test-dsc.ps1" RunAs32Bit: false RunAsAccount: "system" ScriptContent: "test" ApplicationId: "###" TenantId: "###" CertificateThumbprint: "###" -
Attempt to deploy using:
dsc -l trace config set --file .\test.yml -
Check M365DSC Event Log, sure enough the verbose key appears:
<M365DSCEvent> <ConfigurationDrift Source="MSFT_IntuneDeviceConfigurationPlatformScriptWindows" TenantId="wgadev.onmicrosoft.com"> <ParametersNotInDesiredState> <Param Name="Ensure"><CurrentValue>Absent</CurrentValue><DesiredValue>Present</DesiredValue></Param> <Param Name="Ensure"><CurrentValue>Absent</CurrentValue><DesiredValue>Present</DesiredValue></Param> </ParametersNotInDesiredState> </ConfigurationDrift> <DesiredValues> <Param Name ="DisplayName">TestCustomScript</Param> <Param Name ="EnforceSignatureCheck">False</Param> <Param Name ="FileName">test-dsc.ps1</Param> <Param Name ="RunAs32Bit">False</Param> <Param Name ="RunAsAccount">system</Param> <Param Name ="ScriptContent">test</Param> <Param Name ="Id">34cedb35-7569-4d20-acbc-81c12c2d9507</Param> <Param Name ="Ensure">Present</Param> <Param Name ="ApplicationId">###</Param> <Param Name ="TenantId">###</Param> <Param Name ="CertificateThumbprint">###</Param> <Param Name ="Verbose">True</Param> </DesiredValues> <CurrentValues> <Param Name ="EnforceSignatureCheck">False</Param> <Param Name ="ScriptContent">test</Param> <Param Name ="FileName">test-dsc.ps1</Param> <Param Name ="RunAsAccount">system</Param> <Param Name ="Id">34cedb35-7569-4d20-acbc-81c12c2d9507</Param> <Param Name ="Verbose">True</Param> <Param Name ="ApplicationId">###</Param> <Param Name ="DisplayName">TestCustomScript</Param> <Param Name ="Ensure">Absent</Param> <Param Name ="CertificateThumbprint">###</Param> <Param Name ="RunAs32Bit">False</Param> <Param Name ="TenantId">###</Param> </CurrentValues> </M365DSCEvent>
Expected behavior
dsc -l debug config set --file .\test.yml
results:
- name: Intune Test
type: Microsoft.Windows/WindowsPowerShell
result:
actualState:
output: not sure..
messages: []
hadErrors: false
Actual behavior
NativeErrorCode : TypeMismatch
ErrorData : MSFT_WmiError
MessageId : GetOperationResultInvalidResultFormat
ErrorSource :
ErrorType : 0
StatusCode : 13
Message : The PowerShell DSC resource returned results that are not valid from
Get-TargetResource. The Verbose key is not a valid property in the corresponding
DSC resource schema file. The results from Get-TargetResource must be in a Hashtable
format. The keys in the Hashtable must be the same as the properties in the
corresponding DSC resource schema file.
Data : {}
InnerException :
TargetSite : Void ProcessNativeCallback(Microsoft.Management.Infrastructure.Native.OperationCallbackProcessingContext,
T, Boolean, Microsoft.Management.Infrastructure.Native.MiResult, System.String, Microsoft.Management.
Infrastructure.Native.InstanceHandle)
StackTrace : at Microsoft.Management.Infrastructure.Internal.Operations.CimAsyncObserverProxyBase`1.ProcessNativeCallback
(OperationCallbackProcessingContext callbackProcessingContext, T currentItem,
Boolean moreResults, MiResult operationResult, String errorMessage, InstanceHandle
errorDetailsHandle)
HelpLink :
Source : Microsoft.Management.Infrastructure
HResult : -2146233088
2025-11-28T05:54:26.367258Z ERROR dsc_lib::dscresources::command_resource: 896: PID 31112: Exception:
The PowerShell DSC resource returned results that are not valid from Get-TargetResource. The
Verbose key is not a valid property in the corresponding DSC resource schema file. The results
from Get-TargetResource must be in a Hashtable format. The keys in the Hashtable must be the
same as the properties in the corresponding DSC resource schema file.
2025-11-28T05:54:26.441405Z DEBUG dsc_lib::dscresources::command_resource: 660: Process 'powershell'
id 31112 exited with code 1
2025-11-28T05:54:26.446813Z ERROR dsc::subcommand: 106: Error: Command: Resource 'powershell'
[exit code 1] manifest description: Error
Error details
2025-11-28T05:45:31.683970Z ERROR dsc_lib::dscresources::command_resource: 896: PID 33424: Exception:
The PowerShell DSC resource returned results that are not valid from Get-TargetResource. The
Verbose key is not a valid property in the corresponding DSC resource schema file. The results
from Get-TargetResource must be in a Hashtable format. The keys in the Hashtable must be the
same as the properties in the corresponding DSC resource schema file.
2025-11-28T05:45:31.763039Z DEBUG dsc_lib::dscresources::command_resource: 660: Process 'powershell'
id 33424 exited with code 1
2025-11-28T05:45:31.769200Z ERROR dsc::subcommand: 106: Error: Command: Resource 'powershell'
[exit code 1] manifest description: Error
Environment data
Name Value
---- -----
PSVersion 7.5.4
PSEdition Core
GitCommitId 7.5.4
OS Microsoft Windows 10.0.26100
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Version
3.2.0-preview.2
Visuals
No response
- Lenguaje dominante
- Rust
- Estrellas
- 536
- Forks
- 76
- Merge medio
- 1 d 11 h
- PR fusionados (30 d)
- 15
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de PowerShell/DSC
-
Issue-Enhancement Needs Triage
Dificultad 4/5 3-5 días Aptitud para principiantes 30/100
PowerShell/DSC#1750 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
Issue-Bug Need-Review
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
PowerShell/DSC#1749 ·
Los mantenedores suelen responder en 1 día
-
Issue-Bug Need-Review
Dificultad 3/5 1-2 días Aptitud para principiantes 40/100
PowerShell/DSC#1748 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
"apt install dsc" will install the preview release instead of stablePosiblemente ocupada @SteveL-MSFT la tomó hace 3 días. AbiertoIssue-Bug Need-Review
PowerShell/DSC#1746 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Issue-Enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
PowerShell/DSC#1737 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de PowerShell/DSC
Issues similares
-
Write a support policyAbierto
Dificultad 1/5 1-3 horas Aptitud para principiantes 72/100
MattA-Official/vwmcp#20 ·
-
documentation good first issue
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
undergroundrap/hatchling#15 ·
-
Progress difficulty filter lists Hard before MediumPosiblemente ocupada @Pandamachi la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
sysprog21/codetrial#281 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
CLI: --verdict silently ignores extra program/file argumentsPosiblemente ocupada @oxura la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
HigherOrderCO/Bend#1503 ·
-
Add MySQL test coverage for numeric_precision/numeric_scale and seq_in_fk (follow-up to #939)Posiblemente ocupada @tosinxt la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
TabularisDB/tabularis#977 · 1 comentario ·
Los mantenedores suelen responder en 1 día