Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Generating a random password using GeneratePassword
Function New-RandomComplexPassword ($length=8)
{
$Assembly = Add-Type -AssemblyName System.Web
$password = [System.Web.Security.Membership]::GeneratePassword($length,2)
return $password
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment