Windows Server 2012 - Sysprep fails if system has RDS role installed. (ACCESS_VIOLATION Exception) ??

Hi,

I have a Windows Server 2012 Datacenter image. And I launch sysprep.exe from Windows Service to automate it. So sysprep is executed in quiet as a background process i.e. in "System" account. The sysprep is simple to change the computer name, timezone., etc.

It was working fine till I install the RDS roles. With the RDS roles, sysprep fails with following errors. Though if I execute manually in local administrator account, it works fine. The only difference is execution  in "System Account" as background process rather than "Administrator" context.

I am not sure what is changed in Windows Server 2012 where it works for Windows 2k8R2 RDS.

Please let me know if anyone knows the root cause or any pointers. Let me know if you need detailed info. Appreciate your suggestions.


//// Sysprep Logs

2013-05-29 11:04:53, Info       [0x0f0080] SYSPRP ActionPlatform::LaunchModule: Found 'WSLicenseCleanUpState' in C:\Windows\System32\wsclient.dll; executing it
2013-05-29 11:04:53, Info                  SYSPRP Entering WSLicenseCleanupState - Client Stub
2013-05-29 11:04:53, Info                  SYSPRP Exiting WSLicenseCleanupState - Client Stub
2013-05-29 11:04:53, Info       [0x0f0081] SYSPRP ActionPlatform::LaunchModule: Successfully executed 'WSLicenseCleanUpState' from C:\Windows\System32\wsclient.dll without error
2013-05-29 11:04:53, Info       [0x0f00bd] SYSPRP CreateSysprepActionList: Building action list for component Microsoft-Windows-TerminalServices-AppServer-Setup
2013-05-29 11:04:53, Info       [0x0f0080] SYSPRP ActionPlatform::LaunchModule: Found 'AppsrvSysPrepGeneralize' in C:\Windows\System32\setup\tssysprep.dll; executing it
2013-05-29 11:04:53, Info                  SYSPRP Entering AppsrvSysPrepGeneralize.
2013-05-29 11:04:54, Info                  SYSPRP Leaving AppsrvSysPrepGeneralize - DWORD - 0x0.
2013-05-29 11:04:54, Info       [0x0f0081] SYSPRP ActionPlatform::LaunchModule: Successfully executed 'AppsrvSysPrepGeneralize' from C:\Windows\System32\setup\tssysprep.dll without error
2013-05-29 11:04:55, FatalError [0x090001] PANTHR Exception (code 0xC0000005: ACCESS_VIOLATION) occurred at 0x000007FC36730769 in C:\Windows\system32\sysprep\unbcl.dll (+0000000000090769).  Minidump attached (61990 bytes).

I posted this question in Windows Server 2013 setup forum as well.

Thanks,
Ashok

May 30th, 2013 12:17am

Hi, any luck with this? We are having the same issue?

Cheers

Free Windows Admin Tool Kit Click here and download it now
September 23rd, 2013 7:15pm

No luck. We have open support ticket and it went into in archive as I did not get time to follow up with Microsoft. For now, we are not starting sysprep with "System" account process.


  • Edited by AshokTech Saturday, September 28, 2013 1:40 AM
September 28th, 2013 1:39am

I have just encountered this issue.  A customer is not yet ready to make the jump to Server 2012 R2 and requires a Server 2012 image captured with the RDS roles and Office 2010 installed.  I fought with the Build Task Sequence to actually get the "Desktop Experience" feature installed (that was fun!) and just when I thought I'd won, I am now unable to capture the image using Capture Media - exact same error.

A Server 2012 R2 installed with RDS roles doesn't exhibit this issue and captures fine.

Free Windows Admin Tool Kit Click here and download it now
March 19th, 2014 6:56pm

I could resolve this issue by following https://support.microsoft.com/en-us/kb/3020396 
August 11th, 2015 2:58am

I could resolve this issue by following https://support.microsoft.com/en-us/kb/3020396
Free Windows Admin Tool Kit Click here and download it now
August 11th, 2015 2:59am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics