/build/static/layout/Breadcrumb_cap_w.png
07/02/2014 3427 views
Can anyone point me to some documentation on this?  I do not want to join the domain, just run a standard scripted installation, enable and rename the default administrator account, then on restart, login as the renamed default administrator, and delete the 'setup' user account.
So far I have successfully got to the point where I enable and rename the default administrator account.  Now I just need to have the machine log back in as the newly named administrator account and then run a delete 'setup' user account.  Is this possible? 
Answer Summary:
1 Comment   [ + ] Show comment

Comments

  • Thanks SSMal.tmcc!


Community Chosen Answer

1
That is easy.  let say the other user is 2nduser

post script part1:
net user administrator /active:yes
net user administrator newpassword
wmic useraccount where name='administrator' rename newadminname
reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v AutoAdminLogon /d 1  /f
reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v AutoLogonCount /t REG_DWORD /d 3  /f
reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v DefaultUserName /d newadminname  /f
reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v DefaultPassWord /d newpassword
:::::::check reboot required::::::::

machine will autologin as newadmin name

post script part2:
net user 2nduser /delete.

if you want to delete the profile also use something like:

http://helgeklein.com/free-tools/delprof2-user-profile-deletion-tool/
Answered 07/03/2014 by: SMal.tmcc
Red Belt

All Answers

This content is currently hidden from public view.
Reason: Removed by member request
For more information, visit our FAQ's.