I accidentally deleted my admin account

Hello, I accidentally deleted my admin account on my MacBook Pro and have not been able to do much. Starting up in single user mode with command + s then typing mount -uw / *enter* rm /var/db/.AppleSetupdone *enter* reboot does not work for me. After I set up the account I get an error saying that my account can not be named this. I press back but it will not let me change anything. I then restart my Mac and when I log into my main account I see that the account I had just made is there but is a standard. Is there any other way? Can you manually reset it to factory settings?

MacBook Pro (13-inch, 2017, 2 TBT3), macOS High Sierra (10.13.3)

Posted on Nov 22, 2018 4:18 AM

Reply

Similar questions

1 reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

I accidentally deleted my admin account

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.