RESOLUTION
For MSSQL on the local server in the following command can be used: osql -E -Q "exec sp_password NULL,'new_password','sa'" for remote server:
osql -S servername_or_address -E -Q "exec sp_password NULL,'new_password','sa'" Note: To be able to perform the actions above the current account must have administrative privileges on the server.
Keywords: mssql password reset