-
-
Save tiggus-mt/69686efa5041cf84d8ee0e2d7c538fef to your computer and use it in GitHub Desktop.
Generate random string in powershell
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
| #lowercase letters/numbers only | |
| -join ((48..57) + (97..122) | Get-Random -Count 32 | % {[char]$_}) | |
| # all characters | |
| -join ((33..126) | Get-Random -Count 32 | % {[char]$_}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment