Unlock password protected pc

https://tecplatform.blogspot.com/2012/03/unlock-password-protected-pc_13.html
How do I?
- First, remove the hard drive
- Connect it to another PC operating system
- Go to C: \ Windows \ system32 \ config
- La and locate files and remove SAM.log
- Now, put your hard drive to your computer and use the administrator password blank.