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

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 -

Powershell:

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 -

Powershell:

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

command line:

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

var2:

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

Your Answer

 
discard

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.