Disks initializes, formats, and mounts disk partitions as drive letters.
Use this resource when you need to prepare raw disks for use by initializing them, creating partitions, formatting volumes, and assigning drive letters. This is essential for any server with additional data disks that need to be brought online and made available to the operating system.
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