-
Notifications
You must be signed in to change notification settings - Fork 86
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
PowerShell 7 nTSecurityDescriptor missing properties #143
Labels
Comments
Good find. We should be able to test that and add to the module manifest so you don't need to manually import it. |
Agreed. Should be way fix. @SamErde you wanna handle or me? |
On it!
…On Fri, Jul 26, 2024 at 6:50 AM Jake Hildreth ***@***.***> wrote:
Agreed. Should be way fix. @SamErde <https://github.com/SamErde> you
wanna handle or me?
—
Reply to this email directly, view it on GitHub
<#143 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE4HWGISBGQQNYJALUQAI43ZOISXFAVCNFSM6AAAAABLPPQBUOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJSGUYDAMZQHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Thank you, friend. |
Thank you for this module and glad I could help. This was my first Github issue. |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment:
Locksmith 2024.3, installed from PSGallery using Install-Module Locksmith
Windows 10 Enterprise 22H2, July 2024 security updates
PowerShell 7.4.4
Issue:
Running Invoke-Locksmith in PowerShell 7 returns errors:
A constructor was not found. Cannot find an appropriate constructor for type System.Security.Principal.NTAccount.
This is due to missing object properties in the nTSecurityDescriptor object collected by Get-ADCSObject function.
Potential fix/workaround:
PowerShell/PowerShell#21540 (comment)
Import-Module Microsoft.PowerShell.Security prior to running Invoke-Locksmith results in the objects collected by Get-ADCSObject having the needed nTSecurityDescriptor properties
The text was updated successfully, but these errors were encountered: