OpticalDiskDrives manages the drive letter assignment for optical disk drives (CD-ROM, DVD).
Use this resource when you need to change or remove the drive letter of an optical disk drive. This is commonly done on servers to free up a specific drive letter (e.g., D:) for data disk use, or to standardize drive letter assignments across servers.
Source |
|
DSC Resource |
|
Documentation |
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
Mandatory |
Hashtable[] |
List of optical disk drives |
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
DiskId |
Key |
String |
Specifies the optical disk number for the disk to assign the drive letter to. |
|
DriveLetter |
Required |
String |
Specifies the drive letter to assign to the optical disk. |
|
Ensure |
String |
Determines whether a drive letter should be assigned to the optical disk. |
|
OpticalDiskDrives:
Drives:
- DiskId: 1
DriveLetter: F
Ensure: Present
- DiskId: 2
Ensure: Absent
- DiskId: 3
DriveLetter: G