2018-10-01 09:49:43 +00:00
---
external help file: DSInternals.PowerShell.dll-Help.xml
Module Name: DSInternals
2018-10-14 12:10:18 +00:00
online version: https://github.com/MichaelGrafnetter/DSInternals/blob/master/Documentation/PowerShell/Get-ADKeyCredential.md
2018-10-01 09:49:43 +00:00
schema: 2.0.0
---
# Get-ADKeyCredential
## SYNOPSIS
2018-12-28 09:09:35 +00:00
Creates an object representing Windows Hello for Business credentials from its binary representation or an X.509 certificate.
2018-10-01 09:49:43 +00:00
## SYNTAX
### FromCertificate (Default)
```
Get-ADKeyCredential [-Certificate] < X509Certificate2 > [-DeviceId] < Guid > [< CommonParameters > ]
```
2019-01-02 22:48:56 +00:00
### FromDNBinary
```
Get-ADKeyCredential -DNWithBinaryData < String > [< CommonParameters > ]
```
2018-10-01 09:49:43 +00:00
### FromBinary
```
2019-01-02 22:48:56 +00:00
Get-ADKeyCredential -BinaryData < Byte [ ] > [< CommonParameters > ]
2018-10-01 09:49:43 +00:00
```
## DESCRIPTION
{{Fill in the Description}}
## EXAMPLES
### Example 1
```powershell
PS C:\> {{ Add example code here }}
```
{{ Add example description here }}
## PARAMETERS
2019-01-02 22:48:56 +00:00
### -BinaryData
{{Fill BinaryData Description}}
```yaml
Type: Byte[]
Parameter Sets: FromBinary
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
2018-10-01 09:49:43 +00:00
### -Certificate
{{Fill Certificate Description}}
```yaml
Type: X509Certificate2
Parameter Sets: FromCertificate
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -DeviceId
{{Fill DeviceId Description}}
```yaml
Type: Guid
Parameter Sets: FromCertificate
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
2019-01-02 22:48:56 +00:00
### -DNWithBinaryData
{{Fill DNWithBinaryData Description}}
2018-10-01 09:49:43 +00:00
```yaml
2019-01-02 22:48:56 +00:00
Type: String
Parameter Sets: FromDNBinary
2018-10-01 09:49:43 +00:00
Aliases:
Required: True
2019-01-02 22:48:56 +00:00
Position: Named
2018-10-01 09:49:43 +00:00
Default value: None
2019-01-02 22:48:56 +00:00
Accept pipeline input: True (ByValue)
2018-10-01 09:49:43 +00:00
Accept wildcard characters: False
```
### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
### None
## OUTPUTS
### DSInternals.Common.Data.KeyCredential
## NOTES
## RELATED LINKS