From 6db1fdab2033009639f5bfef82d56dcc3b03f26c Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 31 Dec 2017 10:20:31 -0700 Subject: [PATCH] Update install.ps1 --- windows/install.ps1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/windows/install.ps1 b/windows/install.ps1 index 7c48703..3133cd5 100644 --- a/windows/install.ps1 +++ b/windows/install.ps1 @@ -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) {