When OS deployment is done on systems, sometimes it's needed to wipe just the C drive and keep existing data on the D drive. When using a default task sequence in SCCM/ConfigMgr or MDT all data is wiped. This because exiting partitions will be deleted and created again. In this blogpost I explain what to do in this situation.
Just create a default task sequence for OS deployment first. Just edit it after creation and remove any “Format and Partition Disk” step. You can't use this step without wiping the disk at all. In the "Apply Operating System Image" step, make the following modifications before deployment: Set the destination to a specific Disk 0 and Partition 1 (for example), so it's fixed after that.
That way only the partition configured will be used. Other partitions or disks will be saved this way! During the "Apply Operating System Image" step, the configured Disk and Partition will be formatted first before installation. Job completed!
Thanks Henk. I use your recommendation and it works great!
ReplyDeleteMy pleasure! Great it works for you also.
DeleteThanks Henk. It helped us a lot.
ReplyDeleteMy pleasure! :)
DeleteHenk, great article but do you have any suggestions on how to deal with D partitions that are bitlocked?
ReplyDeleteM.vr.gr. Jac
I guess using the same method as above?
DeleteThanks for the solution :)
ReplyDeleteAfter this c and d are switched :-(
ReplyDeleteThe data on D is still there but D becomes C and C become D.
So is there antoher way to do this?
Yes, you can also use a variable (OSDisk) during disk format, and use that one on the Apply OS step.
DeleteAfter this C and D are swiched. The data on de orginal D still presence, but D become C and C becomes D. So is there another way to format only C and leave C realy C?
ReplyDeleteYes, you can also use a variable (OSDisk) during disk format, and use that one on the Apply OS step.
DeleteC becomes d and D becomes C. This is not good
ReplyDeleteI deleted “Format and Partition Disk” and changed the settings in "Apply Operating System Image" but while running TS it gets failed & gives error code 0x80070070.
ReplyDeleteI believe it is not getting partition to install the OS. what could be the issue.
Just make sure to put the OS image on the right partition. Press F8 and check diskpart.
DeleteProbably the "Given variable name" isn't recognized. Use the "Specific disk and partition" instead.
ReplyDeletehi,
ReplyDeletecan you please help in mdt, i have to set it was need to format only c: drive not D: drive the data in drive it should be like that only how can i set it.
Thanks,
Lokesh .v
Hi,
ReplyDeletecan you help me how to set MDT it was need to format C: drive only and the data in D: drive should be like that only,
when i am trying to format it was deleting all the partition and creating new partition.
Thanks,
Lokesh vankam
My company is using workstations where there are 2 physicals HDDs.
ReplyDeleteDisk 0 is SYSTEM disk (SSD)
Disk 1 i DATA disk (HDD)
By default, I think MDT is only deleting disk 0, am I right? We don't use partitions (DATA & SYSTEM) on the same disk. Do I have to be afraid on have my DATA disk erase?