We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28f8cbb commit a3a487fCopy full SHA for a3a487f
ActiveDirectory/ActiveDirectorySPN.psm1
@@ -410,6 +410,10 @@ function New-ADSpn
410
{
411
$getParams.Server = $DomainName
412
}
413
+ if ($PSBoundParameters.ContainsKey('Credential'))
414
+ {
415
+ $getParams.Credential = $Credential
416
+ }
417
$account = &$getFunction @getParams
418
if (-not $account)
419
@@ -1159,7 +1163,7 @@ function Get-ADUserSpn
1159
1163
1160
1164
if ($PSBoundParameters.ContainsKey('Credential'))
1161
1165
1162
- $params.ObjectValue = $Credential
1166
+ $params.Credential = $Credential
1167
1168
Get-ADSpn @params | Select-Object *, @{ n = 'UserName'; e = { $_.SamAccountName } } -ExcludeProperty samAccountName
1169
0 commit comments