At work, there was a requirement to upload an ISO to the vSphere Content Library in an automated fashion (no GUI).
With PowerCLI 11, New-ContentLibrary commandlet seemed to do the job and creates and uploads the ISO file.
However, it creates and uploads the file as type: ‘file’
1 |
New-ContentLibraryItem -ContentLibrary vgnosis_cl -Name $item -Files $file_name |