Created
June 22, 2021 15:59
-
-
Save IT-Delinquent/9c897daa8f7dce35263d7e0cb7411346 to your computer and use it in GitHub Desktop.
PowerShellGenerateSecurePassword
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
| function New-RandomPassword(){ | |
| Add-Type -AssemblyName 'System.Web' | |
| return [System.Web.Security.Membership]::GeneratePassword(10,5) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment