Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to change the administrator account name on my virtual machine for lab work purposes. I'm running Windows Server 2008 Server Core, therefore I'm only using the standard command prompts.

How can I do this?

share|improve this question

If it domain user install Active Directory Administration module for PowerShell.

command line:

powershell Import-module ActiveDirectory

rename domain user -


Get-ADUser -Identity 'Administrator' | Rename-ADObject -NewName 'Partisan'

command line:

powershell Get-ADUser -Identity 'Administrator' ^| Rename-ADObject -NewName 'Partisan'

var 2:

dsquery user -name Administrator | dsmove -newname "Partisan"

local administrator -


Rename-LocalUser -UserName 'Administrator' -NewUserName 'Partisan'

command line:

powershell Rename-LocalUser -UserName 'Administrator' -NewUserName 'Partisan'


wmic UserAccount where Name="Administrator" call Rename Name="Partisan"
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .