One-Liner Random Password Generator

by | May 23,2016

Table of Contents

Generating Temporary Passwords the Easy Way

Check out this simple way of creating temporary passwords:

-join ('abcdefghkmnrstuvwxyzABCDEFGHKLMNPRSTUVWXYZ23456789$%&*#'.ToCharArray() | Get-Random -Count 8)

Customizing Password Length

You can easily vary the password length: change the number for -Count to whatever password length you need.

ReTweet this Tip!