[This command requires installed Remote Server Administration Tools (RSAT)]
Denies a certificate for a certificate request that is placed in 'Pending Requests' node on the CA server.
Deny-CertificateRequest [-Request] <Object> [<CommonParameters>]
Denies certificate request that is placed in 'Pending Requests' node on the CA server. This is equivalent to manually denying the certificate request from Certification Authority MMC snap-in.
Note: for this command to succeed, the certificate request must be pending.
Specifies the particular request object. Request object can be retrieved by running Get-PendingRequest command.
|Accept pipeline input?||true (ByValue, ByPropertyName)|
|Accept wildcard characters?||False|
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, InformationAction, InformationVariable,
WarningAction, WarningVariable, OutBuffer, PipelineVariable and OutVariable.
For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
Author: Vadims Podans
PS C:\> Get-CertificationAuthority CompanyCA1 | Get-PendingRequest -Filter "CertificateTemplate -eq WebServerV2" | Deny-CertificateRequest
This command will attempt to deny certificate requests that are requested to use WebServerV2 certificate template.