Last active
July 11, 2016 08:42
-
-
Save jacoelho/9abb387ec8865d926b37 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function Create-RandomPassword { | |
$Length = "10" #number of characters | |
$NonAlpha = "2" #Number of non alphanumerical characters | |
[Reflection.Assembly]::LoadWithPartialName(“System.Web”) | Out-Null | |
[System.Web.Security.Membership]::GeneratePassword($Length,$NonAlpha) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment