/build/static/layout/Breadcrumb_cap_w.png

KACE Product Support Question


K2000 Scripted Installation with post installation tasks that enables and renames the default Windows 7 Administrator account, then deletes the setup user??

07/02/2014 3801 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.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ