July 2016 archive

Complex Password Generator

Function Get-RandomPassword { param( $length = 10, $characters = ‘abcdefghkmnprstuvwxyzABCDEFGHKLMNPRSTUVWXYZ123456789!”??$%&/()=?*+#_’ ) $random = 1..$length | ForEach-Object { Get-Random -Maximum $characters.length } $private:ofs=”” [String]$characters[$random] } Function Randomize-Text { param( $text ) $number = $text.length -1 $indexes = Get-Random -InputObject (0..$number) -Count $number $private:ofs=” [String]$text[$indexes] } Function Get-ComplexPassword { $password = Get-RandomPassword -length 8 -characters ‘abcdefghiklmnprstuvwxyz’ $password …

Continue reading

365 Password Generator

This powershell script bulk generates passwords in a similar style as the password generator in Office 365.  The passwords begin with a capital letter, followed by 5 lower case letters, and 2 digits at the end.  You can modify the pattern to suite your needs (Note: It’s using the ASCII table ranges as the set …

Continue reading