-
Notifications
You must be signed in to change notification settings - Fork 1
Get CertificatePermissions
github-actions edited this page Jul 20, 2026
·
1 revision
external help file: CertAdmin.dll-Help.xml Module Name: CertAdmin online version: https://msdn.microsoft.com/library/system.security.cryptography.x509certificates.x509findtype.aspx schema: 2.0.0
Returns the permissions of a certificate's private key file.
Get-CertificatePermissions [-Certificate] <X509Certificate2> [-ProgressAction <ActionPreference>]
[<CommonParameters>]
{{ Fill in the Description }}
PS C:\> Get-CertificatePermissions -Certificate $cert
Returns the permissions for the certificate in $cert.
PS C:\> Find-Certificate.ps1 -FindValue ExampleCert -FindType FindBySubjectName -StoreName TrustedPeople -StoreLocation LocalMachine |Get-CertificatePermissions
Returns the permissions for the certificate.
PS C:\> $c = Find-Certificate.ps1 ExampleCert FindBySubjectName TrustedPeople LocalMachine ; Get-CertificatePermissions.ps1 $c
Another approach to get cert permissions.
The certificate to display permissions for.
Type: X509Certificate2
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.