- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Shouldn't the DeviceName value just be the LUN, without the '/vmfs/...' part?
New-HardDisk -VM $vm -DeviceName $UnassignedDisks.1disk -Datastore "MY_DATASTORE" -DiskType RawPhysical -Controller $SCSIController1
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference