< Back
Remove-ActiveDirectoryObjectCertificate
Post
NAME Remove-ActiveDirectoryObjectCertificate
SYNOPSIS
Remove a certificate from an Active Directory user object
SYNTAX
Remove-ActiveDirectoryObjectCertificate [-DistinguishedName] <String> [[-Thumbprint] <String>] [[-Expired]]
[-WhatIf] [-Confirm] [<CommonParameters>]
Remove-ActiveDirectoryObjectCertificate [-UserPrincipalName] <String> [[-Thumbprint] <String>] [[-Expired]]
[-WhatIf] [-Confirm] [<CommonParameters>]
Remove-ActiveDirectoryObjectCertificate [-SamAccountName] <String> [[-Thumbprint] <String>] [[-Expired]] [-WhatIf]
[-Confirm] [<CommonParameters>]
DESCRIPTION
Remove a certificate from an Active Directory user object
PARAMETERS
-DistinguishedName <String>
The DistinguishedName of the user
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-UserPrincipalName <String>
The DistinguishedName of the user
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-SamAccountName <String>
The SamAccountName of the user
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Thumbprint <String>
The thumbprint of the certificate to remove
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Expired [<SwitchParameter>]
Remove the expired certificates
Required? false
Position? 2
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
Position? named
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
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Remove-ActiveDirectoryObjectCertificate -UserPrincipalName cpolydorou@lab.local -Thumbprint
"6C1FC463805E72EBF401E039EC307627078C1339" -Verbose
Removes the certificate with thumbprint 6C1FC463805E72EBF401E039EC307627078C1339 from the object.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Remove-ActiveDirectoryObjectCertificate -UserPrincipalName cpolydorou@lab.local -Verbose
Removes all certificates from the object
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Remove-ActiveDirectoryObjectCertificate -UserPrincipalName cpolydorou@lab.local -Expired -Verbose
Removes all expired certificates from the object.
RELATED LINKS
SYNOPSIS
Remove a certificate from an Active Directory user object
SYNTAX
Remove-ActiveDirectoryObjectCertificate [-DistinguishedName] <String> [[-Thumbprint] <String>] [[-Expired]]
[-WhatIf] [-Confirm] [<CommonParameters>]
Remove-ActiveDirectoryObjectCertificate [-UserPrincipalName] <String> [[-Thumbprint] <String>] [[-Expired]]
[-WhatIf] [-Confirm] [<CommonParameters>]
Remove-ActiveDirectoryObjectCertificate [-SamAccountName] <String> [[-Thumbprint] <String>] [[-Expired]] [-WhatIf]
[-Confirm] [<CommonParameters>]
DESCRIPTION
Remove a certificate from an Active Directory user object
PARAMETERS
-DistinguishedName <String>
The DistinguishedName of the user
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-UserPrincipalName <String>
The DistinguishedName of the user
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-SamAccountName <String>
The SamAccountName of the user
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Thumbprint <String>
The thumbprint of the certificate to remove
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Expired [<SwitchParameter>]
Remove the expired certificates
Required? false
Position? 2
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
Position? named
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
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Remove-ActiveDirectoryObjectCertificate -UserPrincipalName cpolydorou@lab.local -Thumbprint
"6C1FC463805E72EBF401E039EC307627078C1339" -Verbose
Removes the certificate with thumbprint 6C1FC463805E72EBF401E039EC307627078C1339 from the object.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Remove-ActiveDirectoryObjectCertificate -UserPrincipalName cpolydorou@lab.local -Verbose
Removes all certificates from the object
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Remove-ActiveDirectoryObjectCertificate -UserPrincipalName cpolydorou@lab.local -Expired -Verbose
Removes all expired certificates from the object.
RELATED LINKS