I had a pc with a corrupt user profile in today. As it was the only user profile on the PC I could not log in normally to transfer data or create a new profile. the solution was to boot to safe mode command line and create a new user from there …
net user USERNAME PASSWORD /add
net local group administrators USERNAME / add
Then boot back to normal windows and manage the data and accounts as normal.