My hp laptop was showing could not install the window try to restart and install the window then I open cmd by pressing shift +f10 and type net user administrator /enable:yes and pressed enter then type net user administrator mypass and press enter after that I close the box written with " could not install the window restart and install the window" when I just close that box and restart administrator account window came and now I don't know username and password . Now how to login through administrator account.
I have gone through your Post and would like to help
May I know how are you reinstalling Windows? Do you have an HP Recovery Media?
The HP Cloud Recovery Tool allows you to download recovery software to a USB drive. You can use the downloaded recovery image file inorder to install Windows operating system. Click here: https://support.hp.com/in-en/document/c06162205 to Use the HP Cloud Recovery Tool (Windows 10, 7)
Be alert for scammers posting fake support phone numbers and/or email addresses on the community. If you think you have received a fake HP Support message, please report it to us by clicking on "Flag Post".