I often need to create a random string of characters. Here’s a simple function to achieve that:
function get-randomstring {
[CmdletBinding()]
param (
[int]$length
)
$rca = 1..$length |
foreach {
$ran = Get-Random -Minimum 97 -Maximum 123 … Read the full text.