Hi Experts!
I have a few unattended installs I am running in a batch script... The script will be initially started using the local administrator account on non-domain PC's.
The first thing I would like to do is to have the script create a local user and password (with administrator privileges/security group) and set windows to log-in automatically using those credentials.
At this point, I would like the script to reboot the computer (using the shutdown -r command), and when the computer automatically logs-in (with the new username/password pair), the script should re-open, wait 15 seconds (ping -n 15 localhost >nul?) to let windows finish creating the new profile and continue on the next line of the batch file.
I would also like the code that'll be needed in order to get rid of the automatic log-in (i.e. for Windows XP not to remember the password and require the user to log-in).
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Most Valuable Expert award recognizes technology experts who passionately share their knowledge with the community, demonstrate the core values of this platform, and go the extra mile in all aspects of their contributions. This award is based off of nominations by EE users and experts. Multiple MVEs may be awarded each year.
The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.