One-Liner Random Password Generator

by May 23, 2016

Check out this simple way of creating temporary passwords:

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

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

Twitter This Tip! ReTweet this Tip!