N-central Help

Mount VHD to Host

Mounts a virtual hard disk.

Input Parameters

Name Type Required Description
VHD File Path String Yes Specifies the path to the virtual hard disk file for the virtual hard disk to be mounted. If a filename or relative path is specified, the virtual hard disk path is calculated relative to the current working directory.
No Drive Letter Boolean No Specifies that the virtual hard disk is to be mounted without assigning drive letters to the volumes contained within the virtual hard disk.
Read Only Boolean No Specifies that the virtual hard disk is to be mounted in read-only mode.

Output Parameters

Name Type Description
Result Number Returns a success value of zero or any value other than zero to indicate failure.

Example Input Parameters

Name Type Required Example
VHD File Path String Yes c:\test\testvhdx
No Drive Letter Boolean No Optionally, the VHD mounted will not have to have a drive letter assigned.
Read Only Boolean No Optionally, you can set the mounted VHD to Read Only.