PowerShell – Random Password Generator

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



Leave a Reply

Your email address will not be published. Required fields are marked *