MDT - Format and Partition Disk

Akung 0 Reputation points
2024-04-22T15:02:01.4766667+00:00

MDT can't format and partition disk based on the size of hard disk through the options of Query WMI

Microsoft Deployment Toolkit
Microsoft Deployment Toolkit
A collection of Microsoft tools and documentation for automating desktop and server deployment. Previously known as Microsoft Solution Accelerator for Business Desktop Deployment (BDD).
902 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. XinGuo-MSFT 18,766 Reputation points
    2024-04-23T07:31:13.63+00:00

    Hi,

    It seems like you’re trying to format and partition a disk based on the size of the hard disk using Microsoft Deployment Toolkit (MDT). While MDT doesn’t directly support this through Query WMI, there are workarounds you can use.

    One method is to create an extra partition in MDT and deploy a task sequence1. You can resize the Windows partition size either by specifying the size in GB or Percentage. For example, if you reserve 70% for the first partition of a hard drive with 100GB, in the second partition data, you will have 95% of the rest 100GB.

    You can also use a PowerShell script to dynamically set the disk for Windows OS Deployment This can help avoid accidental formatting of USB disks.

    Please remember to back up your data before making any changes to your disk partitions. If you need more detailed instructions, please let me know! 😊

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.