Open cibboy opened 1 year ago
In PsDesiredStateConfiguration v2.0 resource property PsDscRunAsCredential is no longer supported (see https://learn.microsoft.com/en-us/powershell/module/psdesiredstateconfiguration/invoke-dscresource?view=dsc-2.0#notes) as Invoke-DscResource runs in the user context. A workaround is needed to have full compatibility with mof configurations built with Windows Powershell.
PsDesiredStateConfiguration
PsDscRunAsCredential
Invoke-DscResource
In
PsDesiredStateConfiguration
v2.0 resource propertyPsDscRunAsCredential
is no longer supported (see https://learn.microsoft.com/en-us/powershell/module/psdesiredstateconfiguration/invoke-dscresource?view=dsc-2.0#notes) asInvoke-DscResource
runs in the user context. A workaround is needed to have full compatibility with mof configurations built with Windows Powershell.