MountImages is used to mount or unmount an ISO/VHD disk image.
Source |
|
DSC Resource |
|
Documentation |
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
Mandatory |
Hashtable[] |
List of images to mount |
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
ImagePath |
Key |
String |
Specifies the path of the VHD or ISO file. |
|
DriveLetter |
String |
Specifies the drive letter to mount this VHD or ISO to. |
||
StorageType |
String |
Specifies the storage type of a file. |
|
|
Access |
String |
Allows a VHD file to be mounted in read-only or read-write mode. |
|
|
Ensure |
String |
Determines whether the VHD or ISO should be mounted or not. |
|
Example
MountImages:
Images:
- ImagePath: C:\ISO\Test.iso
DriveLetter: F
StorageType: ISO
Access: ReadOnly
Ensure: Present
- ImagePath: C:\VHD\Test.vhd
DriveLetter: G
StorageType: VHDx
Access: ReadWrite
- ImagePath: C:\ISO\Test2.iso