Windows Management Framework 5.0 breaks Sysprep

When Windows Management Framework 5.0 is installed on Windows Server 2008 R2 sysprep will fail with the error:

"A fatal error occurred while trying to Sysprep the machine"

Additionally the error log in the location:


Will contain the following line:

SYSPRP LaunchDll:Failure occurred while executing 'C:WindowsSystem32silsysprep.dll,Sysprep_Generalize_MiStreamProv', returned error code 2[gle=0x00000002]  

The solution until Microsoft releases a patch is to add the following registry key:

LastFullPayloadTime =  dword:00000000  

Using PowerShell:

New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\StreamProvider" -Name LastFullPayloadTime -Value 0 -PropertyType DWord -Force