ComputerManagementDsc icon indicating copy to clipboard operation
ComputerManagementDsc copied to clipboard

UserAccountControl: ComputerManagementDsc vs SecurityPolicyDsc

Open aydeisen opened this issue 4 years ago • 1 comments

Out of curiosity: what's would be the use case for me to use the UserAccountControl resource in the ComputerManagementDsc module instead of the setting the User_Account_Control* keys for the SecurityOption resource in the SecurityPolicyDsc module?

aydeisen avatar Jul 09 '20 14:07 aydeisen

Hi @aydeisen - there does seem to be some cross over with both resources. This does happen from time-to-time - especially when there are multiple ways of achieving something using PowerShell. In this case the UserAccountControl resource has a less granular option for setting parameters.

But from an implementation perspective, UserAccountControl sets values in the registry directly where as SecurityOption uses secedit.exe to set the options.

PlagueHO avatar Dec 03 '20 07:12 PlagueHO