Powershell – Get-RandomPassword

Get a random password function in powershell, it gets a random password of specified length containing numbers, uppercase letters, # lowercase letters and special characters. Minimum length required is 4 characters # since password must contain all four types of characters.

Get-RandomPassword (20)

returns a 20 character long password

Get-RandomPassword (20)

returns a 20 character long password

Leave a comment

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