Syntax
Set-ScriptBundleAssociation [-ScriptBundle] <ScriptBundle> [-Entities] <VIObjectCore[]> [<CommonParameters>]Related Commands
Get-ScriptBundleDetailed Description
Associates the specified script bundle with the specified ESXi system. Currently, the Entities parameter can point only to ESXi hosts.Parameters
Return Type
Notes
Examples
-------------- Example 1 --------------
C:\PS> Set-ScriptBundleAssociation "MyBundle" "h1","h2"
Associate the "MyBundle" script bundle with the hosts named "h1" and "h2".
-------------- Example 2 --------------
C:\PS> $bndl = Get-ScriptBundle -Name "MyBundle" C:\PS> Set-ScriptBundleAssociation $bndl (Get-VMHost "h1")
Associate a script bundle with the host named "h1" using PowerCLI objects.