Examples/Sample_xMountImage_MountISO.ps1

# This configuration will mount an ISO file as drive S:.
configuration Sample_xMountImage_MountISO
{
    Import-DscResource -ModuleName xStorage
    xMountImage ISO
    {
        ImagePath   = 'c:\Sources\SQL.iso'
        DriveLetter = 'S'
    }

    xWaitForVolume WaitForISO
    {
        DriveLetter      = 'S'
        RetryIntervalSec = 5
        RetryCount       = 10
    }
}

Sample_xMountImage_MountISO
Start-DscConfiguration -Path Sample_xMountImage_MountISO -Wait -Force -Verbose