TRogers Posted November 4, 2022 Report Share Posted November 4, 2022 Hello, I am currently working on our company's upgrade to Windows 11 from Windows 10 with a brand-new image. There is one program that requires the image be put on our domain to be installed correctly. Adding the image to the domain and then putting it back to workgroup before capturing it is causing the deployment to fail at the post sysprep "Getting Ready" stage. It sits there endlessly and never fails. I left a laptop sitting at this stage for over 48 hours to see if anything would eventually happen. If I manually reboot the installer, it says "The computer restarted unexpectedly or encountered an unexpected error. Windows installation cannot proceed. To install Windows, click "OK" to restart the computer, and then restart the installation". I am attempting to deploy the image with both ISO and Push methods. If I leave the image with all other steps done to it except adding to the domain, it works as expected and deploys to multiple systems and VMs. I have narrowed down the failure to adding the image to the domain. The default OU it is being added to does not apply any group policy. This process has also worked successfully on Windows 10. What steps should I take to further investigate this issue, or where can I attempt to gather logs for this issue? Link to comment Share on other sites More sharing options...
TRogers Posted November 4, 2022 Author Report Share Posted November 4, 2022 I am using the best practice standards with Hyper-V found at https://support.smartdeploy.com/support/solutions/articles/48001201629-capturing-and-deploying-windows-11 I am also shutting down before capture using "shutdown /s /t 0" as stated on https://support.smartdeploy.com/support/solutions/articles/48000960051-best-practices-to-create-your-reference-virtual-machines Link to comment Share on other sites More sharing options...
SmartDeploySupport Posted November 4, 2022 Report Share Posted November 4, 2022 Hello, What I would recommend is deploying your software as a post image task, or Application Pack. That way you don't have to join the domain on your virtual reference machine. The application would install after the domain join during deployment. Answer File Tasks with SmartDeploy Create Your Own Custom Application Pack You won't want to join the domain on the virtual machine because it can cause issues like you're experiencing. If you want to see the deployment logs, boot the target machine from your SmartDeploy boot media. Select Collect Logs and save the zip to a USB or network location. How to Collect Logs for SmartDeploy Support : Support Center Thanks, Devon SmartDeploy Support Link to comment Share on other sites More sharing options...
NolaITGuy Posted December 27, 2022 Report Share Posted December 27, 2022 @TRogers Did you ever resolve this? We are having the exact same thing happen in our environment, and we're starting to pull our hair out over this. Link to comment Share on other sites More sharing options...
Nikolov-SDSupport Posted December 27, 2022 Report Share Posted December 27, 2022 Hi NoIaITGuy Yeah, this issue was resolved by following Devon's reply. Removing software installed on the image itself. Then using App packs and Answer File tasks instead. https://support.smartdeploy.com/support/solutions/articles/48000960950-answer-file-tasks https://support.smartdeploy.com/support/solutions/articles/48000960633-create-a-custom-application-pack-advanced- If this doesn't work. Then submitting the deployment logs to support@smartdeploy.com to have the Smartdeploy Support team review, and hopefully find out if something else is going on. Thank you, Petar Nikolov Smartdeploy Support Link to comment Share on other sites More sharing options...
TRogers Posted December 27, 2022 Author Report Share Posted December 27, 2022 Ended up getting it figured out. The problem is a sysprep bug on W11 22H2 only. It works fine on W11 22H1. The lines in the file "C:\Windows\System32\Sysprep\ActionFiles\Specialize.xml" with "Capisp.dll" need to be removed for it to image properly. Link to comment Share on other sites More sharing options...
TRogers Posted December 27, 2022 Author Report Share Posted December 27, 2022 3 hours ago, NolaITGuy said: @TRogers Did you ever resolve this? We are having the exact same thing happen in our environment, and we're starting to pull our hair out over this. @NolaITGuy I posted the solution above but forgot to quote you. Making those changes didn't seem to cause any issues but it's still a bit sketchy having to change the sysprep configuration files for it to work properly. Link to comment Share on other sites More sharing options...
NolaITGuy Posted December 27, 2022 Report Share Posted December 27, 2022 Thanks so much! I was able to do a couple of successful test deployments after modifying that file. You're right, it is definitely sketchy but at least it is a workaround for now. Link to comment Share on other sites More sharing options...
David Koretsky Posted January 4 Report Share Posted January 4 On 12/27/2022 at 8:59 AM, TRogers said: Ended up getting it figured out. The problem is a sysprep bug on W11 22H2 only. It works fine on W11 22H1. The lines in the file "C:\Windows\System32\Sysprep\ActionFiles\Specialize.xml" with "Capisp.dll" need to be removed for it to image properly. How did you even find this? Link to comment Share on other sites More sharing options...
Jason Brinkmann Posted January 30 Report Share Posted January 30 I was trying to get more info about this also and found this discussion.Windows 11 sysprep - Microsoft Q&A Looks like it has to do with CryptoSysPrep_Specialize. Some users have said they re-created the image and it worked as long as you do not join it to the domain. Still looking for options to fix it without having to rebuild, but I may just rebuild it anyway just to clean up any misc. files left behind from previous installs. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now