Hello, alansinclair-
The value that you should specify for the parameter -ISOPath is a datastore path. A datastore path is of the form:
[datastoreName] someFolder/somefile.iso
This consists of:
0) the name of the datastore, enclosed in the square brackets
1) a space character
2) the name of the desired folder at the root of the datastore
3) a forward slash (the example in the New-CDDrive documentation incorrectly uses a backslash)
4) the name of the desired file in the given folder
Another datastore path example, to try to help clarify:
[templatesAndISOs] myISOs/kickstartBoot.iso
This datastore path specified the "kickstartBoot.iso" ISO file that resides in the "myISOs" folder at the root of the "templatesAndISOs" datastore.
So, to create a new CDDrive for a VM and attach an ISO to the CDDrive, would copy "kickstartBoot.iso" to the "myISOs" folder on the "templatesAndISOs" datastore, and then issue the command:
$cdDrive=New-CDDrive-VMmyVM-ISOPath"[templatesAndISOs] myISOs/kickstartBoot.iso"
Make sense?