-
Notifications
You must be signed in to change notification settings - Fork 46
Get StrongPassword
Generates a strong password
Get-StrongPassword [-Length <Int32>] [-NumberOfSpecialCharacters <Int32>] [-InformationAction <ActionPreference>] [-InformationVariable <String>] [<CommonParameters>]
Generates a strong password based on the parameters provided
Length in Characters for the generated password to be.
Required? | False |
Position? | named |
Default value | 10 |
Accept pipeline input? | false |
Accept wildcard characters? | False |
Number of special characters to include in the password, must be less than the length of the password
Required? | False |
Position? | named |
Default value | 3 |
Accept pipeline input? | false |
Accept wildcard characters? | False |
Required? | False |
Position? | named |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
Required? | False |
Position? | named |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
This cmdlet does not do a lot currently, it only really generates a password based on System.Web.Security.Membership.GeneratePassword().
PS C:\> Get-StrongPassword
QTJ(T?wwe)
Generates a password 10 characters long with 3 special characters
PS C:\> Get-StrongPassword -Length 20 -NumberOfSpecialCharacters 5
zPN>C%.f/(l1aGq)n3Ze
Generates a password 20 characters long with 5 special characters