cSecurityOptions
cSecurityOptions copied to clipboard
EnableAdminAccount cannot handled a 0 for the value
the EnableAdminAccount option fails when the value is set to 0
I've looked at the code and it looks fine.
Additionally, I spun up a VM and tried setting the parameter to switch the security object to disable the Administrator account and it worked perfectly.
I need more information from you to continue troubleshooting.
I tried this on a Windows 2012 R2 with PowerShell v5.0. What configuration did you bump into where it failed?
its been a while since i have looked at this again, but if memory servers correctly DSC would fail if i put a 0 for the value but would accept a 1. After a little googling i found the default is 0 and works if you just leave it out.