SQL Server 2019

Set password, run in powershell (or cmd?):

#Stop the SQL Server service and start in single user mode only allowing connections from SQLCMD:

net stop mssqlserver
net start mssqlserver /mSQLCMD

ALTER LOGIN sa WITH PASSWORD = 'SomePassword#123'
GO
QUIT

net stop mssqlserver
net start mssqlserver