Sysprep Fails on Windows 2008 R2 with PowerShell 5.0 Installed

Posted on 29th December 2017 in VMware, Windows OS

I experienced this issue when working on a particular platform, it was a weird one so thought I would document it.

The issue:
I tried to deploy a VMware VM from a Windows 2008 R2 Template which had PowerShell 5.1 installed – Windows Management Framework (WMF) 5.0, however OS customisation would not complete. I tried to manually run sysprep within Windows too but that failed. Looking at the sysprep logs showed the error…

“Sysprep_Generalize_MiStreamProv: **** [gle=0x00000002]“

Thanks goes out to Ioan Popovici at for finding and documenting:
Fix Sysprep Error on Windows 2008 R2

The fix:
The fix was adding a registry entry to the Windows 2008 R2 Template.

Open regedit and navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\StreamProvider.

Create a DWORD named LastFullPayloadTime and with the value 0.

comments: 0 »

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>