Jump to content

Modifying user profiles


Recommended Posts

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
Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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