DiskAccessPaths initializes, formats, and mounts disk partitions to folder access paths (mount points).
Use this resource when you need to mount disk volumes to folder paths instead of drive letters. This is common on servers with many disks (e.g., SQL Server, Exchange) where drive letters are insufficient, or when you need to mount volumes under specific directory trees for application requirements.
Source |
|
DSC Resource |
|
Documentation |
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
Mandatory |
Hashtable[] |
List of disk access path specifications |
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
AccessPath |
Key |
String |
Specifies the access path folder to the assign the disk volume to. |
|
NoDefaultDriveLetter |
Bool |
Specifies no automatic drive letter assignment to the partition: Defaults to True |
||
DiskId |
Required |
String |
Specifies the disk identifier for the disk to modify. |
|
DiskIdType |
String |
Specifies the identifier type the DiskId contains. |
|
|
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. |
|
DiskAccessPaths:
Items:
- AccessPath: E:\SysDB
DiskIdType: Number
DiskId: 2
FSLabel: SysDB
NoDefaultDriveLetter: true
- AccessPath: E:\Data
DiskIdType: Number
DiskId: 3
FSLabel: Data
NoDefaultDriveLetter: true
- AccessPath: E:\Logs
DiskIdType: Number
DiskId: 4
FSLabel: Logs
NoDefaultDriveLetter: true
- AccessPath: E:\TempDB
DiskIdType: Number
DiskId: 5
FSLabel: TempDB
NoDefaultDriveLetter: true