With PowerCLI, you can create content library items.

Prerequisites

Verify that you are connected to a vCenter Server system.

Procedure

  1. Get the files that you want to upload to the content library.
    $files = Get-ChildItem -File
  2. Get the content library that you want to upload.
    $contentLibrary = Get-ContentLibrary -name 'MyContentLibrary'
  3. Create a content library item.
    New-ContentLibraryItem -ContentLibrary $contentLibrary -name 'New item' -Files $files