none
Rename the Administrator account from the Command Prompt

    Question

  • HI

    From the Command Prompt of Windows 7, to enable the Administrator user, I should write "net user administrator /active:yes". Also from the command prompt, what is the command to rename this user so that, when I reboot Windows 7, the Administrator account will be created with the name renamed?

    THANKS

    BYE
    Balubeto
    Thursday, February 11, 2010 8:12 AM

Answers

  • Hi balubeto,

    Net command doesn't have rename account function. Based on my research and test on our test machines, you can download a free utility named Renuser.exe to achieve this. Please refer to the  following steps:

    1. Download Renuser.zip file, unzip it and copy Renuser.exe file to the path: C:\Windows\System32.

    Please note: we provide the 3rd party software for technical use only. There may be some changes without notice, Microsoft doesn't guarantee any accuracy on contacting information. 

    2. Start the Command Prompt with elevated privilege.
    3. Type the following syntax:

    renuser <Current UserName> <New UserName> [<DomainName>]

    Since your computer isn't joined to the domain, you can skip the [<DomainName>] setting.

    4. Log off the current account and log back in.

    Now you can see the newly renamed account is displayed on the logon screen.

    Best Regards
    Dale

    Friday, February 12, 2010 9:23 AM
    Moderator
  • Hi Balubeto,

    Yes, that's right.. I notice the site I linked to went down too. Sorry about that. If you still have the information give it try. Dale has a proposal (below) that may also work. 

    I wish you luck


    Kevin Costain
    @calwell on Twitter
    Calwell's Blog
    Google Profile (Buzz)
    Friday, February 12, 2010 2:05 PM

All replies

  • Hi balubeto,

    I think your best best to get this done is using a powershell command or script. You might try doing something outlined here [myitforum.com].

    Give it a shot.


    Kevin Costain
    @calwell on Twitter
    Calwell's Blog
    Google Profile (Buzz)
    Thursday, February 11, 2010 1:21 PM
  • Hi balubeto,

    I think your best best to get this done is using a powershell command or script. You might try doing something outlined here [myitforum.com].

    Give it a shot.


    Kevin Costain
    @calwell on Twitter
    Calwell's Blog
    Google Profile (Buzz)


    So if I write:

    wmic useraccount Administrator="new_account_name"

    I reach my goal?

    THANKS

    BYE


    Balubeto
    Friday, February 12, 2010 8:38 AM
  • Hi balubeto,

    Net command doesn't have rename account function. Based on my research and test on our test machines, you can download a free utility named Renuser.exe to achieve this. Please refer to the  following steps:

    1. Download Renuser.zip file, unzip it and copy Renuser.exe file to the path: C:\Windows\System32.

    Please note: we provide the 3rd party software for technical use only. There may be some changes without notice, Microsoft doesn't guarantee any accuracy on contacting information. 

    2. Start the Command Prompt with elevated privilege.
    3. Type the following syntax:

    renuser <Current UserName> <New UserName> [<DomainName>]

    Since your computer isn't joined to the domain, you can skip the [<DomainName>] setting.

    4. Log off the current account and log back in.

    Now you can see the newly renamed account is displayed on the logon screen.

    Best Regards
    Dale

    Friday, February 12, 2010 9:23 AM
    Moderator
  • Hi Balubeto,

    Yes, that's right.. I notice the site I linked to went down too. Sorry about that. If you still have the information give it try. Dale has a proposal (below) that may also work. 

    I wish you luck


    Kevin Costain
    @calwell on Twitter
    Calwell's Blog
    Google Profile (Buzz)
    Friday, February 12, 2010 2:05 PM
  • Just use an elevated command prompt entering:

    wmic username where "name='<Username>'" rename <NewUsername>

    No need for any third party / potential harmful applications.

    Best Regards

    Andy

    Thursday, October 8, 2015 9:37 AM