Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception calling "GetSecurityDescriptor" with "0" argument(s): "Unknown error (0x80005000)" #19

Open
asagecty opened this issue Nov 4, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@asagecty
Copy link

asagecty commented Nov 4, 2022

Hello, this isn't really an issue per-say, just wanted to post this here in case anyone else has the same issue. I was getting the following error when running the script:

Exception calling "GetSecurityDescriptor" with "0" argument(s): "Unknown error (0x80005000)"

I looked through the code to find the offending line, and it was running Get-AuditCertificateTemplate <ca name>. When I ran the command manually it also errored out with the same message, so it's definitely an issue with the PowerShell module. After some guess and check I found that this error is caused by having a "/" in the certificate template name. After I renamed and deleted any templates with a / it was able to run sucessfully.

@twm2512
Copy link

twm2512 commented Jan 24, 2023

Running into the same issue. Unfortunately our admins are reluctant to rename the certificates to remove the "/" . Has anyone had any success with alternative solution(s) or code modification to accommodate the "/" character?

@asagecty
Copy link
Author

I just converted "/" to "-". I don't think the issue is with this project, looked to me like an issue in the PowerShell module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants