Let me know what OS you are using in the locked computer,different operating systems require different tools to do this.Or try this one-size-fits-all approach https://www.androidphonesoft.com/resources/unlock-windows-10-7-8-computer.html
It works on all Windows 7/8/10 computers.