There are hundreds of computers in the company's network. These computers have different hard disk partitions. Now I want to unifiy the partition of hard disk of computers, for the convenience of reinstalling or refreshing operating system through the MDT.
There are generally three cases of partitions of these computers:
Case 1. Some computers' first partitions are the system partitions, with the operating system installed on them. From the beginning of the second partitions, they are the user data partitions.
Case 2. Some computers' first partitions are system reserved partitions, with the size of 100MB. And the second partitions are the system partition, with the operating system installed on them. From the beginning of the third partitions, they are the user data partitions.
Case 3. The first partitions of some computers are the OEM hidden partitions. These hidden partitions' size usually are less than 8GB. The second partitions are the system partitions, with the operating system installed on them. From the beginning of the third partitions, they are the user's data partitions.
Now, in order to unify the partition standard, I am attempting to use MDT's task sequence, combined with scripts if necessary to realize the way of partition as below, and the user's data partition can not be damaged.
In the first case, the first partition should be divided into two partitions, with the first partition to 500MB, and the remaining space created as a second partition.
In the second and third case, the first partition and the second partition should be merged, and then divided 500MB as the first partition, and the remaining space as the second partition.
May I ask, how to achieve this requirement by only one task sequence or using script?
Thank you !