-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
SecurityOptions - Could not infer CimType from the provided .NET object #126
Comments
Hey, we actually found a fix for this. We have forked this repository and my colleague will be pushing the fix up. In short, there's a (A;;RC;;;SY)(A;;RC;;;DA) This is an esoteric, legacy language called SDDL, and the parentheticals refer to permission sets for local/domain user groups. At the end of each of these is an identifier that is used to identify the group (because the SID was too verbose for the byte constraints that they were working in when this language was created). This is converted to a SID, which is then converted to a friendly name that is used to construct an object using New-CimInstance. Because the only one noted in the switch statement is "BA" (i.e. Builtin\Administrators), it breaks. We added support for all missing ones, including SY (NT AUTHORITY\SYSTEM) and DA (DOMAIN\Domain Administrators). Cheers! |
- Changes to SecurityPolicyDsc: - Added support for more SDDL SID constants (issue #126) - Added functions to convert identity to and from SDDL SID constants - Changed Format-RestrictedRemoteSAM to use new function to create strings with additional SDDL SID constants - Changed ConvertTo-CimRestrictedRemoteSam to use new function to accept more possible SDDL SID constants - Changed ConvertTo-CimRestrictedRemoteSam to skip CimInstance creation if no valid Identity was found
- Changes to SecurityPolicyDsc: - Added support for more SDDL SID constants (issue #126) - Added functions to convert identity to and from SDDL SID constants - Changed Format-RestrictedRemoteSAM to use new function to create strings with additional SDDL SID constants - Changed ConvertTo-CimRestrictedRemoteSam to use new function to accept more possible SDDL SID constants - Changed ConvertTo-CimRestrictedRemoteSam to skip CimInstance creation if no valid Identity was found
Hi,
I'm running into issues with a baseline in windows 2019.
I receive the following error on multiple securityOptions:
Does anyone know how to resolve this?
Regards,
Thijs
The text was updated successfully, but these errors were encountered: