Sysprep/Capture Rebooting into CMD

RS4KING 191 Reputation points
2021-03-08T15:29:59.017+00:00

I have a fully updated Windows that has no applications aside from what's in the Windows 10 ISO. I tried to run my sysprep and capture and it does its thing and then restarts the computer (as it should) but it doesn't log back into Windows. Instead, it reboots into the MDT set up and automatically goes to the command prompt showing X:\windows\system32.

I've seen this before and I know that if I close the CMD window it will continue to reboot back into the same CMD prompt. It's basically stuck in this loop. I know that if I go to CMD prompt and delete the C:\MININT folder, it will allow me to boot into Windows but my sysprep doesn't finish or do anything when I log back in.

Any ideas why it boots into the CMD prompt in the first place and not into Windows to finish the sysprep/capture?

Thanks in advance!

Microsoft Deployment Toolkit
Microsoft Deployment Toolkit
A collection of Microsoft tools and documentation for automating desktop and server deployment. Previously known as Microsoft Solution Accelerator for Business Desktop Deployment (BDD).
825 questions
0 comments No comments
{count} votes

Accepted answer
  1. RS4KING 191 Reputation points
    2021-03-09T20:46:16.357+00:00

    Update: I seemed to have fixed it. I have no idea what fixed it but here is what I did:

    1. Removed my 2nd deploymentshare (I had created a whole new one when I was trying to figure out what the hell was going on)
    2. I decided to try and run the LiteTouch.vbs while logged into the user I set up during Windows First Time setup. Before, I was going into LUSRMGR.msc and re-enabling the Administrator account, then deleting the newly created account that I had set up initially and running LiteTouch using the built-in Administrator account that's disabled during setup (I honestly think it was this that fixed the issue)
    3. Removed the changes I did in the Unattend.xml file. I had made changes to the AutoLogon portion of the script and added Administrator and local password. I removed this information.
    4. Updated my username/password/domain in the CUSTOM.INI file. I was using another account that wouldn't have worked.

    I hope this helps someone else. Just to note, I was also having issues with the sysprep/capture failing due to the Error AppX Package is not installed for all users etc.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. AllenLiu-MSFT 40,076 Reputation points Microsoft Vendor
    2021-03-09T06:48:42.087+00:00

    Hi, @RS4KING
    Thank you for posting in Microsoft Q&A forum.
    Have we tried to delete the C:\MININT folder first and then run sysprep and capture?
    We may check below article to see if we missed any steps:
    https://theitbros.com/capture-windows-10-reference-image/
    (Third-party link, just for your reference)


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.