Need help restarting a server after a friend clained my pc as a server

Are you doing this on a Windows Server edition?
If not, see You need to reclaim your server, but don't dare to touch the Windows Registry
“Method 2.2”