Once given the task to create about a hundred of (unsimilar) Active Directory users on a Windows domain controller, I needed a batch script to create random passwords to my clipboard. The constrains were clear: alphanumeric
[a-zA-Z0-9] with minimum and maximum character count. A double-click is all that’s needed for execution.
In my case, I wanted an alphanumeric password with 10 characters on a click. The following script executes the
RandomString command with the parameters set.