Come across an interesting issue this week. VMWare Tools prevents sysprep from completing when using /generalize parameter as long as VMWare Tools is installed in the guest.
I first discovered this using VMWare Workstation Pro 11 (as that's what our license currently is), but decided to test to see if VMWare Workstation Pro 14 had the same results, and after downloading the trial and setting up Windows 10, I found it did.
Problem: VMWare Tools prevents sysprep from generalizing Windows inside of Windows 10 Enterprise 1803. Results in the following entry in the setupact.log in C:\Windows\System32\sysprep\UnattendGC:
[0x0f00a7] SYSPRP WinMain:Failed to process unattend file's 'generalize' pass; hr = 0x80070005
Steps to replicate problem:
- Create new VMWare Workstation guest. Install Windows 10 Enterprise 1803 x64
- Once OOBE starts, enter audit mode
- Install VMWare Tools (Click VM → Install VMWare Tools, open virtual CD drive on guest, run the setup, reboot).
- Run CMD as admin and enter the following command:
sysprep.exe /generalize /oobe /unattend:C:\Path\to\Unattend.xml /shutdown
Expected behavior:
Sysprep, generalize, and reseal guest Windows installation to prepare for image capture and initiate OS shutdown
Actual behavior:
Sysprep exclaims "A fatal error has occurred", result 0x80070005
Sysprep quits.
It should be noted that if you skip step 3 in "Steps to replicate problem", it proceeds as it should, but this makes it borderline impossible to get needed customizations from host to guest.
Am I just going crazy here?
I can provide my unattend.xml, and any logs necessary (after sanitation, of course), upon request.