VMware Horizon – Troubleshooting “Why did my PC restart?”-loop after sysprep with VMware OSOT

Release date: July 16th 2020

Welcome to my VMware Horizon series. Recently, when I was in the process of setting up a new Windows 10 build 2004 template for a customer, I ran into an issue after running sysprep from VMware OSOT June 02 2020 version b1160. Once sysprep was done I rebooted as normal, but went into an eternal boot loop with the error message saying: “Why did my PC restart?”



This was, as it turns out after a little googling, solvable with some adjustments in the answer-file. Luckily for me, I had, as I always do before I run VMware OSOT, taken a snapshot. I reverted back to this and added and adjusted the following lines in unattend.xml.

<settings pass=”oobeSystem”>



After this change the sysprep went through as it was supposed to and the customers template was completed. Lesson learned, always take snapshot before running VMware OSOT! So, if you run into the same issue, this fixed it for me.


VMware OS Optimization Tool

VMware Horizon planning, deployment etc.


Disclaimer: Every tips/tricks/posting I have published here, is tried and tested in different it-solutions. It is not guaranteed to work everywhere, but is meant as a tip for other users out there. Remember, Google is your friend and don’t be afraid to steal with pride! Feel free to comment below as needed.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s