How to Generate Random Password using PowerShell
Try the below powershell script to generate random password as per required characters and length. With the help of below scrip you can configure complex passwords to services or any account user. function Generate-Password { $alphabets= “abcdefghijklmnopqstuvwxyz1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*()” $char = for ($i = 0; $i -lt $alphabets.length; $i++) { $alphabets[$i] } for ($i = 1; $i … Read more