Update install.ps1

This commit is contained in:
FusionPBX
2017-12-31 10:20:31 -07:00
committed by GitHub
parent de03dc3932
commit 6db1fdab20

View File

@@ -49,7 +49,10 @@ Function Write-Log([string]$message) {
}
Function New-Password([int32]$length) {
([char[]]([char]'A'..[char]'Z') + [char[]]([char]'a'..[char]'z') + 0..9 | Sort-Object {Get-Random})[0..$length] -join ''
$password = ""
$chars = "abcdefghijkmnopqrstuvwxyzABCEFGHJKLMNPQRSTUVWXYZ23456789!#%&?".ToCharArray()
1..$length | ForEach { $password += $chars | Get-Random }
return $password
}
Function Get-InstalledApp([string]$name) {