Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save irungentootoo/854b4235d9ff5a75bfbb560104a14d45 to your computer and use it in GitHub Desktop.
Save irungentootoo/854b4235d9ff5a75bfbb560104a14d45 to your computer and use it in GitHub Desktop.
Generate random string in powershell
#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