Remove-MsmqCertificate
Removes personal certificates.
Syntax
Default (Default)
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.
Parameter properties
| Type: | SwitchParameter |
| Default value: | False |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | cf |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | 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.
Parameter properties
| Type: | X509Certificate2[] |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | True |
| Value from pipeline: | True |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Parameter properties
| Type: | SwitchParameter |
| Default value: | False |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | wi |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.