When using the GetSecurityDescriptor method of the StdRegProv class you receive unknown error (0x8004101d)
We've recently had an issue using the GetSecurityDescriptor method of the StdRegProv class you receive unknown error (0x8004101d).
This appears to be a limitation in the WMI provider when there is an unresolved account in the security descriptor / ACL.
You can replicate the issue by
- Creating a local user account
- Assigning this user account to a registry key
- Close regedit
- Delete the local user account
- Reboot
You will now seen an unknown account referenced, which will cause the issue with the GetSecurityDescriptor method.
To resolve the issue you need to remove the unresolved account from the ACL, or use the an alternative method of collecting the information such as the Get-Acl PowerShell cmdlet.
Why not check out our Windows Server Documentation and Audit Tool?
Comments
Post a Comment