SecurityPolicyDsc icon indicating copy to clipboard operation
SecurityPolicyDsc copied to clipboard

Could not convert Identity: BUILTIN to SID

Open husni-nilar opened this issue 1 year ago • 1 comments

I am using Powershell DSC to harden some systems and a weird issue is appearing on certain systems. Below is the error which appears:

"PowerShell DSC resource MSFT_UserRightsAssignment failed to execute Test-TargetResource functionality with error message: Could not convert Identity: BUILTIN to SID "

The instance in which these errors appear is at below:

 UserRightsAssignment Takeownershipoffilesorotherobjects {
            Policy   = 'Take_ownership_of_files_or_other_objects'
            Identity = 'Administrators'
        }

        UserRightsAssignment Forceshutdownfromaremotesystem {
            Policy   = 'Force_shutdown_from_a_remote_system'
            Identity = 'Administrators'
        }

        UserRightsAssignment Shutdownthesystem {
            Policy   = 'Shut_down_the_system'
            Identity = 'Administrators'
        }

Would love to know what the issue might be exactly and how I can fix it.

husni-nilar avatar Jan 17 '24 10:01 husni-nilar

Is there any correlation whether the machines having the issue is domain-joined or not?

janegilring avatar Dec 05 '24 11:12 janegilring