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 »

Change User Password via Command Line

Posted on 26th December 2012 in Windows OS

Open up a command line prompt (Run -> Cmd) and type the command “net user {username} {new password}”

You have to run the Command Line as Administrator (right click and “Run as Administrator”). Substitute {username} with the required username you wish to change and substitute {new password} with the password you want the user to be set to.

comments: 0 »