Skip to content

Commit

Permalink
Install-DbaInstance - Use maximum length for random password (#9119)
Browse files Browse the repository at this point in the history
Co-authored-by: Chrissy LeMaire <[email protected]>
  • Loading branch information
andreasjordan and potatoqualitee authored Oct 10, 2023
1 parent f6a2b7b commit 9edc767
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/Install-DbaInstance.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ function Install-DbaInstance {

# auto generate a random password if mixed is chosen and a credential is not provided
if ($AuthenticationMode -eq "Mixed" -and -not $SaCredential) {
$secpasswd = Get-RandomPassword -Length 15
$secpasswd = Get-RandomPassword -Length 128
$SaCredential = New-Object System.Management.Automation.PSCredential ("sa", $secpasswd)
}

Expand Down

0 comments on commit 9edc767

Please sign in to comment.