Ever need a quick randomly generated password?

Here’s a quick bit of code for that.

 


$RandomCharacters = [Char[]]"abcdefghijkmnopqrstuvwxyzABCEFGHJKLMNPQRSTUVWXYZ23456789!#%&/()=?"
$RandomPW = ($RandomCharacters | Get-Random -Count 16) -join ""
$RandomPW