< Back
Import-ActiveDirectoryObjectCertificate
Post
NAME Import-ActiveDirectoryObjectCertificate
SYNOPSIS
Add a certificate to Active Directory
SYNTAX
Import-ActiveDirectoryObjectCertificate [-DistinguishedName] <String> [-Path] <String> [<CommonParameters>]
Import-ActiveDirectoryObjectCertificate [-UserPrincipalName] <String> [-Path] <String> [<CommonParameters>]
Import-ActiveDirectoryObjectCertificate [-SamAccountName] <String> [-Path] <String> [<CommonParameters>]
DESCRIPTION
Add a certificate to Active Directory from file
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
-Path <String>
The path to the file
Required? true
Position? 3
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:\\>Import-ActiveDirectoryObjectCertificate -UserPrincipalName cpolydorou@lab.local -Path .\\certificate.cer
-Verbose
Import the certificate from the file "certificate.cer" to the cpolydorou@lab.local Active Directory object.
RELATED LINKS
SYNOPSIS
Add a certificate to Active Directory
SYNTAX
Import-ActiveDirectoryObjectCertificate [-DistinguishedName] <String> [-Path] <String> [<CommonParameters>]
Import-ActiveDirectoryObjectCertificate [-UserPrincipalName] <String> [-Path] <String> [<CommonParameters>]
Import-ActiveDirectoryObjectCertificate [-SamAccountName] <String> [-Path] <String> [<CommonParameters>]
DESCRIPTION
Add a certificate to Active Directory from file
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
-Path <String>
The path to the file
Required? true
Position? 3
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:\\>Import-ActiveDirectoryObjectCertificate -UserPrincipalName cpolydorou@lab.local -Path .\\certificate.cer
-Verbose
Import the certificate from the file "certificate.cer" to the cpolydorou@lab.local Active Directory object.
RELATED LINKS