If you can only access the Command prompt, you can run a command that will restart the…