Stop SQL services
Run the below command on run box
sc start MSSQL$SQLEXPRESS -m
open management studio
Step 1: Login to MS SQL Server , right click on it and click on Properties.
Step 2: Click on Security ,click SQL Server and Windows Authentication mode option as show below and click on ok.
Step 3: once you clicked Ok button, you will get below message to restart MS SQL Server.
Restart the MS SQL SQL Server to take effect and enable Windows and SQL Authentication mode.
Step 4: once again login to MS SQL server , click on Logins and goto ‘sa‘ user.
Step 5: Right click on ‘sa‘ user and click on Properties as shown below.
Step 6: In General section , change the password and confirm password and you can uncheck Enforce password policy if you don’t want and click on Ok.
Step 7: Navigate to Status page , In Login settings click on Enabled to enable sa login and click on Ok.
Step 8: Press the Windows+R, type ‘services.msc‘ and restart the SQL Server as shown below.
Now you can login to SQL Server using SQL Authentication mode , ‘sa’ user and password.