function randomPassword{
# return a reasonably randomized password that starts with "KimConnect:" plus 25 characters with some complexities
$append="KimConnect:";
$script:salt = ([char[]]([char]33..[char]95) + ([char[]]([char]97..[char]126)) + 0..8 | sort {Get-Random})[0..24] -join '';
return "$append$salt";
}
March 31, 2019March 31, 2019
0 Comments