Thor Logo dbatools

Password

Sync-DbaLoginPassword

Shawn Melton (@wsmelton), http://www.wsmelton.com

Sync-DbaLoginPassword View Source Shawn Melton (@wsmelton), http://www.wsmelton.com Windows, Linux, macOS Synopsis Synchronizes SQL Server login passwords between instances using hashed password values. Description Syncs SQL Server authentication login passwords from a source to destination instance(s) without requiring knowledge of the actual passwords. Uses the same technique as Microsoft’s sp_help_revlogin by extracting and applying hashed password values. This is particularly useful for: Maintaining consistent passwords across Availability Group replicas Migrating logins between instances when users cannot provide their passwords Disaster recovery scenarios where password synchronization is critical Keeping development/test environments synchronized with production passwords The function only works with SQL Server authentication logins.

Read more