It is common for Kiosk type devices to have a local account that has no password to run whatever the main kiosk app is. It also common for said devices to need registry customizations, some set under the local kiosk user's context. I would like to use DSC to audit/fix those settings as necessary but the Registry resource gets a null reference if the password for the user is blank.
The easiest way to demonstrate it is with the generated mof excerpt:
If I put a password into the credential, I get the expected invalid password message but with the correct blank password I get:
PowerShell DSC resource MSFT_RegistryResource failed to execute Test-TargetResource functionality with error message: Object reference not set to an instance of an object.
Thanks for raising this @lanatmwan - we'll need to figure out if this is a limitation with the resource or with DSC itself. Are you able to share your DSC Config as well?
It is common for Kiosk type devices to have a local account that has no password to run whatever the main kiosk app is. It also common for said devices to need registry customizations, some set under the local kiosk user's context. I would like to use DSC to audit/fix those settings as necessary but the Registry resource gets a null reference if the password for the user is blank.
The easiest way to demonstrate it is with the generated mof excerpt:
If I put a password into the credential, I get the expected invalid password message but with the correct blank password I get: