troubleshooting Question

Continue batch file after restart

Avatar of taki1gostek
taki1gostekFlag for United States of America asked on
Windows BatchVB ScriptWindows XP
20 Comments2 Solutions8928 ViewsLast Modified:
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).  
Join our community to see this answer!
Unlock 2 Answers and 20 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 20 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros