Boot with Windows image, on install windows screen, choose repair.
If doesn't work, then take snapshot first and try below steps.
1. Shutdown virtual machine (VM).
2. keep snapshots of VM hard disk settings like SCSI (0:0), and disk file path on datastore etc.
3. Attach the OS disk as a data disk to another VM (a troubleshooting VM).
4. Connect to the troubleshooting VM. Open Computer management > Disk management. Make sure that the OS disk is online and that its partitions have drive letters assigned.
5. On the OS disk you attached, navigate to \windows\system32\config. Copy all the files as a backup in case a rollback is required.
6. On the OS disk you attached, copy the files in \windows\system32\config\regback and replace the files in \windows\system32\config.
7. Detach the repaired OS disk from the troubleshooting VM.
8. Then reattached disk with same configuration to original VM and check if its working.