1

I've been looking around and can't find an answer to this.

i want to change an account name with a batch file

1 Answers1

3

In an elevated command prompt run the following:

wmic useraccount where name='currentname' rename newname

currentname will be what it currently is

newname is what you want it to be.

e.g.

wmic useraccount where name='JigglePiggle' rename JP