Created
March 30, 2017 06:34
-
-
Save Sarafian/558121409acc19ce3cebfafe06b9a0d8 to your computer and use it in GitHub Desktop.
Get random string PowerShell
This file contains 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 GetRandomString([int]$length){ | |
-join ((65..90) + (97..122) | Get-Random -Count $length | % {[char]$_}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment