Examples/Resources/OpticalDiskDriveLetter/3-OpticalDiskDriveLetter_SetDriveLetterMulti.ps1

<#
    .EXAMPLE
        This configuration will set the drive letter of the first
        optical disk drive in the system to 'Y'. It will set the
        drive letter of the second optical disk drive to 'Z'. It
        will remove the drive letter from the third optical disk
        drive in the system.
#>

Configuration Example
{
    Import-DSCResource -ModuleName StorageDsc

    Node localhost
    {
        OpticalDiskDriveLetter SetFirstOpticalDiskDriveLetterToY
        {
            DiskId      = 1
            DriveLetter = 'Y'
        }

        OpticalDiskDriveLetter SetSecondOpticalDiskDriveLetterToZ
        {
            DiskId      = 2
            DriveLetter = 'Z'
        }

        OpticalDiskDriveLetter RemoveThirdOpticalDiskDriveLetter
        {
            DiskId      = 3
            DriveLetter = 'A'
            Ensure      = 'Absent'
        }
    }
}