ScriptBundle Category | Vmware PowerCLI Reference

Script Bundle Category

Cmdlets are usually implemented around resource operations. The four basic operations are CREATE, READ, UPDATE and DELETE. This set of operations is known as CRUD. Most of the cmdlets support CRUD which are respectively cmdlets that start with the New/Get/Set/Remove cmdlet verbs but they also may have additional operations

Step 1: Retrieve a object by running a Get command

You can READ objects by using Get-ScriptBundle cmdlet. See example below:

#

C:\PS&#62 $bundle = Get-ScriptBundle "testbundle"

Step 2 : Run commands from the CRUD group

You can UPDATE objects by using Add-ScriptBundle cmdlet. See example below:

# Uploads the script bundle located at the path to the Auto Deploy Server.

C:\PS&#62 Add-ScriptBundle "file:///c:/temp/script-bundle-0.tgz"
You can REMOVE objects by using Remove-ScriptBundle cmdlet. See example below:

# Removes the script bundle "MyBundle" from the Auto Deploy Server.

C:\PS&#62 Remove-ScriptBundle "MyBundle"

Step 3: Explore More Related Commands:


Set-ScriptBundleAssociation Associates the specified script bundle with the specified ESXi system.