POWERSHELL 快捷函数

生成随机字符串

#lowercase letters/numbers only
-join ((48..57) + (97..122) | Get-Random -Count 32 | % {[char]$_})
#lowercase and uppercase letters / numbers
-join ((48..57) + (65..90) + (97..122) | Get-Random -Count 32 | % {[char]$_})
# all characters
-join ((33..126) | Get-Random -Count 32 | % {[char]$_})

你可能感兴趣的:(POWERSHELL 快捷函数)