logo-powershell

With this script you will be able to generate a random password with custom character sets :

  • define a set for the lower case characters : variable $chars_low
  • define a set for the upper case characters : variable $chars_upp
  • define a set for the numbers : variable $chars_num
  • define a set for the special characters : variable $chars_spc

You can define also how many characters you want to insert in the final password in each set (variables $x_low, $x_upp, $x_num and $x_spc)

In the following example, a random password is generated with these following rules :

  • the password will contain 5 lower case characters
  • the password will contain 5 upper case characters
  • the password will contain 5 numbers
  • the password will contain 2 special characters

<>

My Powershell script categories

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Social Media Auto Publish Powered By : XYZScripts.com
%d bloggers like this: