SQL Clone
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Generate Strong Passwords for Standard SQL Logins

By sharrell,

This script will generate random Strong Passwords for all Standard SQL Logins for a specified SQL Server.  It currently does ALL standard logins, including SA, so you would want to add to the WHERE clause in the SELECT_LOGINS constant if you want to limit the logins.  The password generated will be 10 - 15 characters in length.  You can edit the GenPasswd function in the script to customize the generated password to fit your requirements.
Just save the entire script to a file with a .VBS extension.
Execute the script with a /? argument to see usage information.

Total article views: 187 | Views in the last 30 days: 1
Related Articles

Generate Login Script(2008R2 And Older)

Generate Script from Logins of Sql Server to recreate in another instance


auto generate logins

auto generate logins


Login Password Policy

This script lists all of the SQL logins with their password policy


Script Login Differences

Compare the logins and users on two instances and generate a TSQL script to make them the same.


Complex Random Password Generator

Generate passwords meeting complexity rules