SSMS: reset SQL Server Management Studio with /selfreg /setup
Command to re-register SSMS components and rerun its initial setup.
When SQL Server Management Studio (SSMS) misbehaves (badly registered components, startup errors), the note keeps this command to reset it:
SSMS.EXE /selfreg /setup
/selfreg: asks SSMS to re-register its components./setup: reruns the application's initial setup phase.
Run it from the SSMS installation folder, from an elevated console, with SSMS closed.