Fix Sysprep Error on Windows 2008 R2 or Windows 7 after installing Windows Management Framework 5.0

Ioan Popovici
MEM.Zone
Mar 25, 2016

--

I always hate it when sysprep fails but this time it had a happy ending…

🚨🚨 IMPORTANT NOTICE🚨🚨

🦄 We moved to our brand new blog at MEM.Zone 🦄

🚨🚨 IMPORTANT NOTICE🚨🚨

Problem

  • Install Windows Management Framework 5.0 (Contains PowerShell 5.0)
    on Windows 2008 R2 or Windows 7.
  • Run sysprep.
  • Sysprep fails with:
Sysprep_Generalize_MiStreamProv: RegDeleteValue for target uri failed with error = 2[gle=0x00000002]
Sysprep_Generalize_MiStreamProv: RegDeleteValue for full payload time failed with error = 2[gle=0x00000002]

Solution

  • Add the following key to registry:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\StreamProvider] “LastFullPayloadTime”=dword:00000000
  • Try sysprep again it should work.

Use Github for 🐛 reporting, or 🌈 and🦄 requests

🙏 Please subscribe or clap for this article, it makes a difference! 🙏

--

--