Home » PowerShell » Complex Password Generation

Complex Password Generation

Recent Tweets

Enter your email address to follow this blog and receive notifications of new posts by email.

Advertisements

If you already have the assembly loaded, you can skip the first line:
[Reflection.Assembly]::LoadWithPartialName(“System.Web”)

Then it really is a one-liner

[System.Web.Security.Membership]::GeneratePassword(6,2)

Note: If you want more than 6 character long password, just change the value here (6,2) like if you want 8 character pw (8,2)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s