March 6 2012

Capture and deploy Windows 8 with SCCM 2007 R3



----------------------------------------------------------------------------
I use a maximum of one Google Ad per post to help offset some of my blog hosting costs.

----------------------------------------------------------------------------

I had a bit of time this weekend to play around with the latest Windows 8 Consumer Preview release. One of the first things I wanted to try and do was capture a reference image and redeploy it with SCCM 2007 R3. Firstly I tried to do this using the Capture task sequence media (Capture Image Wizard) however this was continuously failing at one of the first step – ‘Running sysprep command’. Looking in the smsts.log, I could see it was failing with error – ‘Failed to prepare the system partition for staging.
Wait Callback (Error: D0000004; Source: WinHTTP)’. See image below:

So I went back to the way I used to do OSD in SMS 2003. I manually ran c:windowssystem32sysprepsysprep.exe and selected the options below:

Once the machine was shutdown, I restarted it and booted into WinPE from my WDS server (you could use a CD/DVD/USB instead) and opened a command prompt (F8). I mapped a drive to the location of my WAIK files (Win7 WAIK v6.1.7600.16385) so I could have access to imagex.exe and ran imagex.exe /capture c: z:win8.wim “Windows 8” as you can see below:

There were a few error messages about extended attributes, however I could see the image was still being captured:

Once the capture process was complete, I simply added this into SCCM 2007 R3 as an OS image just like you would for Windows XP / 2008 / 7 and created a simple task sequence. Windows 8 was then successfully deployed!

Of course, none of this is supported by Microsoft and since we are only playing with a Consumer Preview version, nobody is going to be running this in a production environment. As far as I’m aware, even SCCM 2012 does not yet support deployment of Windows 8, so hopefully that is updated before RTM. Hopefully there is also an update for SCCM 2007!


 
 
 
 



----------------------------------------------------------------------------
I use a maximum of one Google Ad per post to help offset some of my blog hosting costs.

----------------------------------------------------------------------------

October 19 2011

How to set date format and timezone in WinPE

I had a need for an accurate timezone and specific date format during Windows PE session when using SCCM OSD.

To change timezone:

At the start of the task sequence, run a command like “reg.exe import AUS_EST.reg”
This is simply an export of HKLMSystemCurrentControlSetControlTimeZoneInformation.
In my case, the contents of AUS_EST.reg looked like:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTimeZoneInformation]
“Bias”=dword:fffffda8
“StandardName”=”AUS Eastern Standard Time”
“StandardBias”=dword:00000000
“StandardStart”=hex:00,00,04,00,01,00,03,00,00,00,00,00,00,00,00,00
“DaylightName”=”AUS Eastern Daylight Time”
“DaylightBias”=dword:ffffffc4
“DaylightStart”=hex:00,00,0a,00,01,00,02,00,00,00,00,00,00,00,00,00
“ActiveTimeBias”=dword:fffffd6c

To change date format in WinPE:

Mount WIM using DISM
Load hive “mount”WindowsSystem32configDEFAULT into registry
Navigate to the loaded hive then Control PanelInternational
Update the values you need to in here such as sLongDate and sShortDate
Unload hive
Unmount WIM using DISM, ensuring that you use the /commit switch

For more info on editing the registry for a WIM file, see my other post http://blog.danovich.com.au/2010/03/16/edit-the-registry-inside-a-wim-file/
 
 

March 16 2010

Edit the registry inside a WIM file

An oldie but a goodie – this came about again when creating Windows 7 WIM files for SCCM. It really does save a lot of time – otherwise you would need to deploy your image, make changes to the registry and then recapture. This process is much quicker! I use the DISM tool from the WAIK toolkit but you could also use imageX to mount the image.

Steps:

Mount the WIM

Open the Deployment Tools Command prompt and enter:

dism /mount-wim /wimfile:d:temptest.wim /index:1 /mountdir:c:mount

Result:

D:>dism /mount-wim /wimfile:d:temptest.wim /index:1 /mountdir:c:mount
Deployment Image Servicing and Management tool
Version: 6.1.7600.16385
Mounting image
[==========================100.0%==========================]
The operation completed successfully.

 

Load the registry hive

From a command prompt enter:

reg load HKLMtest c:mountwindowssystem32configsoftware

Result:

D:>reg load HKLMtest c:mountwindowssystem32configsoftware
The operation completed successfully.

 

Open regedit

You will then see the registry that is contained in the WIM file, in this case it is called test. Make your changes, then exit regedit.

 

Unload the registry hive

From a command prompt enter:

reg unload HKLMtest

Result:
D:>reg unload HKLMtest
The operation completed successfully.

 

Unmount the image

Open the Deployment Tools Command prompt and enter:

dism /unmount-wim /mountdir:c:mount /commit

Result:

D:>dism /unmount-wim /mountdir:c:mount /commit
Deployment Image Servicing and Management tool
Version: 6.1.7600.16385
Image File : d:temptest.wim
Image Index : 1
Saving image
[==========================100.0%==========================]
Unmounting image
[==========================100.0%==========================]
The operation completed successfully.