79655650

Date: 2025-06-06 08:55:38
Score: 1
Natty:
Report link
if ($dbUserName.length -le 8) {
    Write-Output "Please enter more than 8 characters."
    $dbUserName = Read-Host "Re-enter database username"
}

Although it is stated in the comments section, the logic is not correct in the accepted answer and more than a hundred voters didn't actually care about this.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sándor Rózsa