From 9edc7673424e93c23f60cfad2569bdc1e9c44e54 Mon Sep 17 00:00:00 2001 From: Andreas Jordan <66946165+andreasjordan@users.noreply.github.com> Date: Tue, 10 Oct 2023 19:10:16 +0200 Subject: [PATCH] Install-DbaInstance - Use maximum length for random password (#9119) Co-authored-by: Chrissy LeMaire --- public/Install-DbaInstance.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/Install-DbaInstance.ps1 b/public/Install-DbaInstance.ps1 index 04c4a70223..609f1c2e30 100644 --- a/public/Install-DbaInstance.ps1 +++ b/public/Install-DbaInstance.ps1 @@ -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) }