chunks
Contributor
Contributor

Install VM Tools with vCloud Director & PowerCLI 6.3

I am looking at the  PowerCLI cmdlets and cannot find a way to installvmtools.  I see it is there in the API, but don't see a way to interface via PowerCLI.  Any ideas?

PowerCLI Version

----------------

   VMware vSphere PowerCLI 6.3 Release 1 build 3737840

---------------

Component Versions

---------------

   VMware Cloud Infrastructure Suite PowerCLI Component 6.3 build 3709081

   VMWare AutoDeploy PowerCLI Component 6.0 build 3736841

   VMWare ImageBuilder PowerCLI Component 6.0 build 3736841

   VMware vSphere PowerCLI Component 6.3 build 3709081

   VMware vSphere Update Manager PowerCLI 6.0 build 2503190

   VMware VDS PowerCLI Component 6.3 build 3709081

   VMware vCloud Director PowerCLI Component 6.3 build 3615264

   VMware HA PowerCLI Component 6.0 build 3625284

   VMware License PowerCLI Component 6.0 build 3615733

   VMware vCloud Air PowerCLI Component 6.3 build 3615264

   VMware PowerCLI Component for Storage Management 6.0 build 3617867

   VMware vROps PowerCLI Component 6.3 build 3615304

Connect-CIServer -Server vcloud.nad.global.corp -Org vos

$vApp_name = Get-Content ".\vApp_name.txt"

$vApps = Get-CIVApp $vApp_name -Org vos

foreach ($vApp in $vApps) {

        $vms = Get-CIVM -VApp $vApp

        foreach ($vm in $vms) {

                $vm.ExtensionData.InstallVMwareTools()

         }

}

in this case vmware tools cd mounting on vm but not installing the VM tool.

0 Kudos
0 Replies