Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.