< Back

Check-TrustedPublisherCert

Sat Jan 18, 2020 11:29 am

NAME Check-TrustedPublisherCert



SYNOPSIS

check if a certificate is installed in the trusted publisher container of the local machine certificate store





SYNTAX

Check-TrustedPublisherCert [[-certfile] <String>] [[-thumbprint] <String>] [<CommonParameters>]





DESCRIPTION

check if a certificate is installed in the trusted publisher container of the local machine certificate store





PARAMETERS

-certfile <String>

-certfile certfile{full file path to a valid CER file}



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-thumbprint <String>

-thumbprint string{valid thumbprint of a certificate already installed in the trusted published container}



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

TypeName : boolean





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>check if certificatessign.cer is already added in Trusted Publisher container of local machine certificate

store



C:\\PS> Check-TrustedPublisherCert -certfile "c:\\test\\certificatessign.cer"









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>check if certificate with thumprint xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx is already added in Trusted

Publisher container of local machine certificate store



C:\\PS> Check-TrustedPublisherCert -thumbprint "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"











RELATED LINKS