Ransome Ware?

I’ve been hit with em a couple times. The one that just locks your computer and you can’t do ****.
Both times I just held down the power button till it shut off and then powered back up in safe mode. Then did a system restore to an earlier date. Worked fine both times.