Disks module is used to initialize, format and mount the partition/volume as a drive letter.
Source |
|
DSC Resource |
|
Documentation |
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
Mandatory |
Hashtable[] |
List of disk specifications |
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
DiskId |
Required |
String |
Specifies the disk identifier for the disk to modify. |
|
DriveLetter |
Key |
String |
Specifies the identifier for which disk to modify. |
|
DiskIdType |
String |
Specifies the identifier type the DiskId contains. |
|
|
PartitionStyle |
String |
Specifies the partition style of the disk. |
|
|
Size |
UInt64 |
Specifies the size of new volume. |
||
FSLabel |
String |
Define volume label if required. |
||
AllocationUnitSize |
UInt32 |
Specifies the allocation unit size to use when formatting the volume. |
||
FSFormat |
String |
Specifies the file system format of the new volume. |
|
|
AllowDestructive |
Boolean |
Specifies if potentially destructive operations may occur. |
||
ClearDisk |
Boolean |
Specifies if the disks partition schema should be removed entirely, even if data and OEM partitions are present. Only possible with AllowDestructive enabled. |
Disks:
Disks:
- DiskId: 0
DiskIdType: Number
DriveLetter: C
PartitionStyle: MBR
FSLabel: System
Size: 1GB
AllocationUnitSize: 4096
FSFormat: NTFS
AllowDestructive: true
ClearDisk: true
- DiskId: 1
DiskIdType: Number
DriveLetter: D
FSLabel: Data
AllocationUnitSize: 2KB