Jump to content

Recommended Posts

Posted (edited)

I am trying to disable the built in admin account and create a new admin account with the settings etc into a new account.. Is there a easy way to do this?

Here is what i am thinking but someone else probably knows an easier way..

EDIT: I think i may try and explore USMT..


REM rename default admin
wmic UserAccount where Name="administrator" call Rename Name="backupadmin"

REM create new account newadmin
NET USER newadmin password

REM Add new account to admin group
net localgroup administrators newadmin /add

REM Enable system to change password at next login
WMIC.EXE Path Win32_UserAccount Where Name="newadmin" Set PasswordExpires="TRUE"
net user newadmin /logonpasswordchg:yes

REM copy all stuff from backupadmin to new newadmin
copy c:\users\backupadmin\* c:\users\newadmin\

REM disable old admin
net user backupadmin /active:no

Edited by mchipser

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...