-
Notifications
You must be signed in to change notification settings - Fork 1
Enable Certificate
external help file: CertAdmin.dll-Help.xml Module Name: CertAdmin online version: https://docs.microsoft.com/dotnet/api/system.security.cryptography.x509certificates.x509certificate2.archived schema: 2.0.0
Unsets the Archived property on a certificate.
Enable-Certificate [-Certificate] <X509Certificate2> [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm]
[<CommonParameters>]
Clearing the Archived property allows you to enable a certificate without having to re-import it, for software that excludes Archived certificates.
Enable-Certificate -Certificate $cert
Sets $cert.Archived to $false.
Find-Certificate -FindValue ExampleCert -FindType FindBySubjectName -StoreName TrustedPeople -StoreLocation LocalMachine |Enable-Certificate
Sets the found ExampleCert as not archived.
For more information about options for -FindType: https://msdn.microsoft.com/library/system.security.cryptography.x509certificates.x509findtype.aspx
Get-Item Cert:\CurrentUser\My\F397B30796BE1E1D11C34B6893A2F035844FD936 |Enable-Certificate
Sets the certificate as not archived.
The certificate to un-archive.
Type: X509Certificate2
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False@{Text=}
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False@{Text=}
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: False
Accept pipeline input: False
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.