创建随机密码

Add-Type -AssemblyName System.Web
    $PasswordLength = 12
    $SpecialCharCount = 0
    $Password=[System.Web.Security.Membership]::GeneratePassword($PasswordLength, $SpecialCharCount)
原文地址:https://www.cnblogs.com/dreamer-fish/p/12166839.html