diff --git a/powershell/Modules/ModPlatformAD/ModPlatformADCredential.psm1 b/powershell/Modules/ModPlatformAD/ModPlatformADCredential.psm1 index b72e110db..fe94126b9 100644 --- a/powershell/Modules/ModPlatformAD/ModPlatformADCredential.psm1 +++ b/powershell/Modules/ModPlatformAD/ModPlatformADCredential.psm1 @@ -58,6 +58,7 @@ function Get-ModPlatformADCredential { $SecretValueRaw = aws secretsmanager get-secret-value --secret-id "${SecretArn}" --query SecretString --output text } $SecretValue = "$SecretValueRaw" | ConvertFrom-Json + $DomainNameNetbios = $ModPlatformADConfig.DomainNameNetbios $DomainJoinUsername = $ModPlatformADConfig.DomainJoinUsername $DomainJoinPassword = $SecretValue.$DomainJoinUsername if (-not $DomainJoinPassword) {