PowerShell Random Password Generator – Short n Sweet

Define the password length and quantity of special characters.

1
2
3
4
Add-Type -AssemblyName System.Web
$PasswordLength = 24
$SpecialCharCount = 3
[System.Web.Security.Membership]::GeneratePassword($PasswordLength, $SpecialCharCount)

Leave a Reply

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