SCCM 2012 SP1 – Install Windows 7 to drive letter C:

by

·

You are looking for a easy solution, to get a wim-File, copied directly from the Microsoft source, installed to the Computers drive C:? Here you get it!

As we all know, until Windows 7, all wim Files are, when directly applied, installed as System Drive letter D:. No Problem till SCCM 2012. But with SP1, which no longer supports Installations with the Installer Option (e.g. running Setup.exe), for all Windows Builds below Windows 8 and Windows Server 2012, only Image deployment will be supported. Using the Installer Source mode is still working in VMs, where no Drivers are needed, or when you Import necessary Drivers into the wim-File.

Only a simple Change to your Task Sequence is needed, that those Image Installations will successfully be applied to the System drive C:.
Just add a “Set Task Sequence Variable” Action to your Task Sequence with Name OSDPreserveDriveLetter and value False. This will ignore the Driver letter stored in the WIM, this Task Sequence Variable is also new to SCCM 2012 SP1.

OSDPreserveDriveLetter

And with this, you can use your configuration as before. I normally use a variable, which is set, when the harddisc is formatted. Edit the Partition you want to assign the variable:

partition

PartitionPorperties

And in the “Apply Operating System” Action, the variable is then used:

ApplyOS

Hope this helps 🙂

Martin

Comments

28 responses to “SCCM 2012 SP1 – Install Windows 7 to drive letter C:”

  1. Bernard Brink Avatar
    Bernard Brink

    Thank you! Easy, Quick and superb solution!

  2. Antti Avatar
    Antti

    This works, thx. I’ve been stucked with this problem with windows7 installed to D-drive letter
    by SCCM2012SP1, now it installs to C-drive

  3. Srdjan Avatar
    Srdjan

    Thank you thank you thank you!!!

  4. Dave Quinney Avatar

    Hi, wonder if anyone knows how to get round this one!? I want to reinstall windows on 80 laptops that currently have data on it’s D: drive. I have managed to preserve the data on D: but when my Task has completed Windows is on D: drive and the Data is now on C: drive!!

    Any ideas?

    1. Martin Wüthrich Avatar

      Which Partition is used for OS and whichone for Data?
      And you are using OSDPreserverDriveLetter = false?

      1. Dave Quinney Avatar

        Hi, yes I have added the preserve letter variable but it didn’t make any difference 🙁 the OS is currently on C: and data on D: but when using SCCM it’s installing the OS on D: but preserving the Data but putting on C:! It looks like it’s working and installing the OS on Disc 0 Partition 1 but its assigning that partition to D:?

    2. Rishi Pandit Avatar

      Hiii Dave, I have same case. I have data on D, E and F but i want to install windows 8 only on C drive after formatting it.

      Currently i have windows 7 and windows 8-32bit in those pcs. Also have D, E and F also on some PCs.

      Can you please share how did you managed to preserve data on D drive ?

      1. Dave Quinney Avatar
        Dave Quinney

        Hi Rishi,
        Sorry for the late reply, been on holiday.
        Yes I have managed to do it now.

        1. Firstly you need to disable the “Format & Partition Disk” step as you can’t just format the C:, It formats the whole drive and then partitions it which is no good.

        2. Then add a “Set Task Sequence Variable” and use OSDPreserveDriveLetter as the Variable name and this time set the value to TRUE

        3. “Apply Operating System” Set Destination to Specific disk & partition Disk: 0 Partition: 2

        Hope that helps

        Dave

  5. Anthony Avatar
    Anthony

    For your step on the Partition Properties that you named “System”. Where is that at or do you create a new one? If you do create a new Variable Task, where does it go?

    Thanks!

    1. Martin Wüthrich Avatar

      In the Standard Task Sequence Step which Formats and partioning the disk, you can open a specific Partition, and edit the Settings. The second Print Screen “Partition Properties” Shows this menu. There you can set the variable on a spevific Partition.

      1. Anthony Avatar
        Anthony

        Martin,

        Thanks that fixed it for me. Would you have a Guide for Offline USMT Task Sequence? I created a Task Sequence that works for Online USMT but I cannot find anything for Offline TS. I tried even using MDT 2012 SP1 but it didn’t install on C: and lost the user profiles – good thing it was in my lab and not Prod!!

  6. Guilherme C. Maia Avatar

    Guys,

    How to fix drive letter C: in image Windows 7 on process Refresh with Hard-link?
    Thank you

    1. Martin Wüthrich Avatar

      I would recommend to use a Help Forum (TechNet, myitfourm, etc) for your question.

      1. Guilherme C. Maia Avatar

        Martin

        I have not found anything like this in the forums could help me force the drive letter C with USMT process?

  7. Barnaby Avatar
    Barnaby

    I’m struggling with this issue using SCCM2007R3. I thought it was due to the reserved BitLocker partition, but the original source wim still installed to D: when I create only one partition. I thought this was an issue with my environment until I read this. For completeness, can you enlighten me as to the solution prior to SCCM2012SP1? Thanks!

    1. Martin Wüthrich Avatar

      Yes, you have to create a build and capture Task Sequence. Then you get an Installation with Setup.exe (Windows Installer Option) and from this, it will create a WIM File, in which the System Drive would be C:.

      1. Barnaby Avatar
        Barnaby

        Thanks for that option. I didn’t like the idea of doing a Build and Capture just to produce a WIM that installed Windows 7 to C: drive, so I uploaded the Win7 DVD contents as an Operating System Install Package rather than just the WIM as an Operating System Image. This install process may take a little longer (?) but faithfully reproduces an original install from OEM media. I was still able to partition the disk with a BitLocker reserved boot partition, and assigned a custom Unattend.xml made via Windows System Image Manager and applied at the Apply Operation System step. The only thing I had to change was the Apply Network Settings step to join the domain, as the process applies the SCCM recorded computer name after the domain join and this local name change isn’t reflected in AD so the trust relationship ends up broken. Instead I used a Join Domain or Workgroup step after the Setup windows and ConfigMgr step, and now I have a BitLocker’ed Win7 x64 Enterprise image installed to C: without any contamination from using a WIM built on a specific piece of hardware.
        Cheers, Barnaby

  8. manuverma Avatar
    manuverma

    Hi,
    I need to create 2 partition ,one is primary in which os is installed and second one for free space.
    How can we do like that?

    Thanks

    1. Martin Wüthrich Avatar

      Hi,
      there are many Solutions for this. Simply: Edit the Format and Partatition Step in your Task Sequence as needed.

      1. manuverma Avatar
        manuverma

        Hi,
        Can you please share some screenshots for the same to make 2 partition in task sequence.

        1. Martin Wüthrich Avatar

          Sorry, I’ve never used a Partition Schema like this, so I can’t create any screenshots. Are you sure that you have understand the possibilities of the step which I mentioned?
          Do you Need to preserve an existing Partition? If not, simply create your OS volume with a fixed size, and create a Partition with the 100% of remaining space Option.

  9. […] This blog, this Technet discussion and the Technet article which mentions: “ The build and capture task sequence was updated to apply an operating system image instead of running Setup.exe for installation. You can still run Setup.exe for Windows 8 deployments by editing the task sequence in the task sequence editor.” pointed me to the right direction to workaround this issue. Obviously the deployment method using the unattended setup does not work with Windows 7 anymore, but works only with Windows 8. […]

  10. manuverma Avatar
    manuverma

    Many Thanks ,
    Successfully deploy Windows 7 with two fresh partition.
    Now ,I want to make D drive data remains the same and C drive will be fresh installation.
    Please suggest .

    1. Martin Wüthrich Avatar

      I’ve never used this before, but just skip the Format and Partition step and the instalation should get on your designated Partition.

      1. varunashat Avatar

        Dear Sir,

        Can we migrate xp to 7 using sccm 2012 r2 with user profile.

  11. tbirdbrent Avatar

    Reblogged this on PowerShell Helped Me and commented:
    Found this post to resolve the issue I was having, when deploying an operating system the OS would always install to the D: drive. Great post on fixing this issue.

  12. L Deeney Avatar
    L Deeney

    Thanks for this – just preserve drive letter false didn’t work for us – this however did. you’re a star!

Leave a Reply to Anthony Cancel reply

Your email address will not be published. Required fields are marked *