Remove-MsmqCertificate

Removes personal certificates.

Syntax

Remove-MsmqCertificate
      [-Confirm]
      -InputObject <X509Certificate2[]>
      [-WhatIf]
      [<CommonParameters>]

Description

The Remove-MsmqCertificate cmdlet removes personal certificates from Active Directory® Domain Services. This cmdlet returns the removed Message Queuing (also known as MSMQ) certificate.

Examples

Example 1: Remove all certificates for the current user

PS C:\> Get-MsmqCertificate | Remove-MsmqCertificate

This command gets the certificates of the current user for all hosts or virtual servers by using the Get-MsmqCertificate cmdlet. The command passes them to the current cmdlet by using the pipeline operator. The current command removes the certificates.

Required Parameters

-InputObject

Specifies an array of certificate objects that represent certificates that this cmdlet removes from Active Directory Domain Services. This parameter accepts pipeline input.

Type:X509Certificate2[]
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False