创建随机密码

 

Add-Type -AssemblyName System.Web
    $PasswordLength = 12
    $SpecialCharCount = 0
    $Password=[System.Web.Security.Membership]::GeneratePassword($PasswordLength, $SpecialCharCount)

 

posted on 2020-01-08 15:19  momingliu11  阅读(188)  评论(0编辑  收藏  举报