# encoding: ascii
# api: powershell
# title: New-RandomComplePassword
# description: Generates a random password of a specified length.
# version: 0.1
# type: function
# author: naveen
# license: CC0
# function: New-RandomComplexPassword
# x-poshcode-id: 6274
# x-archived: 2016-11-18T01:03:14
# x-published: 2016-03-31T04:00:00
#
#
Function New-RandomComplexPassword ($length=20)
        $password = [System.Web.Security.Membership]::GeneratePassword($length,2)
        return $password
New-RandomComplexPassword
