Showing posts with label OSDPreserveDriveLetter=False. Show all posts
Showing posts with label OSDPreserveDriveLetter=False. Show all posts

Wednesday, January 30, 2013

Deployment issues with OSDPreserveDriveLetter parameter

Last time I want to create a Windows 7 reference image in SCCM/ConfigMgr 2012 SP1. The new method for deploying Windows 7 is by INSTALL.WIM. No Setup.exe is used anymore for creating a reference image. By default Windows 7 will be installed on the D: drive. For installing Windows 7 on the C: drive an additional parameter is needed. Just add "OSDPreserveDriveLetter=False" before the Apply OS step, which allows the task sequence to auto-correct the D: issue. Sounds easy isn't it?

Update 4-6-2013:
In the task sequence choose Add > General > Set Task Sequence Variable. Fill in the following information:
- Task Sequence Variable: OSDPreserveDriveLetter
- Value: False
Just add this command before the Apply Operating System step.

Now it comes: When creating a reference image without the parameter, this must be included during OS deployment. When deploying a task sequence without the parameter, everything goes fine, but Windows 7 is installed on the D: drive. When deploying a task sequence with the parameter, deployment stops after installing the ConfigMgr client. No applications are installed and no certificate is available in the ConfigMgr client. Also the ConfigMgr Site can't be found by the ConfigMgr client.

Error message in CCMSETUP.LOG:
- File C:\WINDOWS\ccmsetup\{1AF71F68-6089-4211-ADDC-06DF40606141}\client.msi installation failed. Error text: ExitCode: 1603
- Client installation has failed too many times. Ccmsetup will now abort.

Next thing to try is to create a new reference image with the parameter included. When creating a reference image with above step, the parameter isn't needed anymore during OS deployment. However, OS deployment stops again after installing the ConfigMgr client. At the first application mentioned in the task sequence everything stops.

Error message in SMSTS.LOG:
- (__hrMethodRetVal == ((HRESULT)0L)) || (bFailIfMissing == false), HRESULT=80070002 (e:\NTS_SCCM_RELEASE\sms\common\inc\ccmxml.h,582)- 401 - Authentication failure on request with anonymous access, retrying with context credentials.

I solved above issue by creating and deploying a new task sequence, with all same applications and steps in it. Then it all was working again. I'm happy that it seems to work now, but doesn't get why it didn't the first time? Anyone recognize the error messages?

Friday, January 11, 2013

Create and deploy a Windows 8 image in ConfigMgr 2012 SP1

Last years I created many Windows XP and Windows 7 reference images with software updates in it. With ConfigMgr 2012 it was also needed to create a reference image, but installing software updates was a lot easier. This because of a new feature: Offline Servicing, which installs software updates offline in the reference image. More about Offline Servicing can be found HERE. With ConfigMgr 2012 SP1 and Windows 8 support it will be easier again. How about that!?

In ConfigMgr 2012 SP1 the Build and Capture proces is updated to apply image in place of Setup.exe installation. It's possible now to use a Windows 7 or Windows 8 INSTALL.WIM from installation media directly in ConfigMgr. This because the D: issue (which was the reason for a reference image) is fixed. When using a Windows 7 or Windows 8 INSTALL.WIM it will be installed on the C: drive now. Just use Offline servicing and you have a up-to-date reference image! (software updates were another reason for building a reference image before SP1)


For Windows 7 there's an additional "Apply operating system action" needed. Just add "OSDPreserveDriveLetter=False" before the Apply OS step, which allows the task sequence to auto-correct the D: issue. Windows 8 will be installed on the C: drive by default, so now worries about that. Over time, Microsoft will deprecate Setup.exe installations for Windows operating systems.

When you want to install applications in the reference image (because of faster deployment) just deploy the INSTALL.WIM in a Build and Capture proces. Then add some applications and/or scripts and capture the image again. Nice to see that Imaging in ConfigMgr 2012 SP1 is better and easier again, but there's still much to learn on this topic!