cSecurityOptions icon indicating copy to clipboard operation
cSecurityOptions copied to clipboard

EnableAdminAccount cannot handled a 0 for the value

Open jmpetty21 opened this issue 7 years ago • 2 comments

the EnableAdminAccount option fails when the value is set to 0

jmpetty21 avatar Mar 16 '17 12:03 jmpetty21

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?

ChrisAWalker avatar Apr 02 '17 22:04 ChrisAWalker

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.

jmpetty21 avatar Apr 03 '17 15:04 jmpetty21