Skip to content

Sysprep Fails on Windows 2008 R2 with PowerShell 5.0 Installed

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 sccm-zone.com for finding and documenting:
Fix Sysprep Error on Windows 2008 R2

The Solution

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.

Published inVMwareWindows Server 2008

Be First to Comment

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.