cibboy / PSDSCAgent

A Powershell Desired State Configuration agent written in Powershell
MIT License
0 stars 0 forks source link

Workaround for absence of PsDscRunAsCredential #4

Open cibboy opened 1 year ago

cibboy commented 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.