Custom Partition Hard Disk Sizes With MDT

Our company recently refresh notebook spec minimum hard disk space from 256GB to 512GB. Deploying notebook using MDT has become challenging because for the notebook with 256GB we maintain whole drive as C without partition. While for the notebook with 512GB, we partition C to 300GB and the remaining to D.

After Googling for while, I found the answer from several tutorials. This requirement can be simply solved by adding a WMI query into task sequence.

20180710_145207-01

Let’s see how the configuration works!

  1. Get into your Task Sequence and navigate to Preinstall->New Computer OnlyMDT011
  2. Delete all existing volume, right-click the partition and click X to delete
    MDT032
  3. Click Yes to confirm delete. Repeat the same process for the rest of the volume.
    MDT033
  4. Create the first volume for OS. I set 300GB for C drive
    MDT012
  5. Remaining will be my data drive, so use the percentage option
    MDT013
  6. Okay here is the trick, on the “Format and Partition Disk (BIOS)” click the “Options”
    then select “Query WMI”
    MDT014
  7. Insert the following WMI query
    MDT015

    SELECT * FROM Win32_DiskDrive WHERE Size > 314572800

    This means format C to 300 GB and remaining to D if my total hard disk size is more than 300GB.
    Calculation as below
    300 * 1024 * 1024 = 314572800 KB

  8. Now we create another Task Sequence for hard disk which is 256GB
    MDT036
  9. Create 1 volume with 100% disk space remaining
    MDT037
  10. Insert WMI Query rule
    MDT038.PNG

    SELECT * FROM Win32_DiskDrive WHERE Size < 314572800
  11. Final result. Repeat the above step to create the task sequence for UEFI disk. Click Apply and OK.
    MDT039That’s it! hope you enjoy this tutorial.Special thanks to Johan from his blog
    https://msfn.org/board/topic/149484-how-can-i-make-custom-partition-sizes-in-mdt-2010/

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s