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.


  While you're here -
Why not check out our Windows Server Documentation and Audit Tool?


Comments

Popular posts from this blog

Windows Server 2016, 2019, 2022, Windows 10 and Windows 11: Date and time "Some settings are managed by your organization".

TFTPD32 or TFTPD64 reports Bind error 10013 An attempt was made to access a socket in a way forbidden by its access permissions.

Enable function lock for F1-F12 on HP ZBook mobile workstations