Skip to content

Instantly share code, notes, and snippets.

@wtfc0d3
Last active June 15, 2021 17:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wtfc0d3/b77127ae242d78bda24700c15abff1bd to your computer and use it in GitHub Desktop.
Save wtfc0d3/b77127ae242d78bda24700c15abff1bd to your computer and use it in GitHub Desktop.
-join ((48..57) + (65..90) + (97..122) | Get-Random -Count 8 | % {[char]$_})
@wtfc0d3
Copy link
Author

wtfc0d3 commented Jun 15, 2021

PS C:\Users\Sergey> -join ((48..57) + (65..90) + (97..122) | Get-Random -Count 8 | % {[char]$_})
VZyX2jbY

@wtfc0d3
Copy link
Author

wtfc0d3 commented Jun 15, 2021

PS C:\Users\Sergey> -join ((33..126) | Get-Random -Count 8 | % {[char]$_})
oi.|8Z0A

@wtfc0d3
Copy link
Author

wtfc0d3 commented Jun 15, 2021

Copy to the clipboard:

PS C:\Users\Sergey> -join ((33..126) | Get-Random -Count 8 | % {[char]$_}) | Set-Clipboard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment