Remove-MsmqCertificate

Removes personal certificates.

Syntax

Remove-MsmqCertificate
      -InputObject <X509Certificate2[]>
      [-WhatIf]
      [-Confirm]
      [<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.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

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

-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
Required:True
Accept pipeline input:True
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
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

X509Certificate2[]

Outputs

Object