创建随机密码
Add-Type -AssemblyName System.Web $PasswordLength = 12 $SpecialCharCount = 0 $Password=[System.Web.Security.Membership]::GeneratePassword($PasswordLength, $SpecialCharCount)
Add-Type -AssemblyName System.Web $PasswordLength = 12 $SpecialCharCount = 0 $Password=[System.Web.Security.Membership]::GeneratePassword($PasswordLength, $SpecialCharCount)