Sample script to modify vApp (Network, Firewall Rules, Start/Stop Order,...
Hi allI would like to share a script I developed the last few days. What the script does:- Add an internal network called "Internal" with NAT/Firewall to a vApp- Add Firewall rules (f.e. RDP)- Set the...
View ArticleImport LDAP Users
Has anyone attempted to import LDAP users via PowerCLI? I have a list of 65 users that need to be imported and I would like to save some time on all the clicks. I'm hoping I can get the information...
View ArticleTrouble adding more "CIVM" to a "CIVApp" in vCloud via PowerCLI 5.5
Hi All,I am having trouble performing some tasks in PowerCLI that I can do easily in the GUI. Firstly, in the vCloud Director GUI, I can create a new vApp from a template that has one machine in it. I...
View ArticleDTD is prohibited in this XML document
I am trying to use "connect-ciserver <servername>", and after entering my credentials, I get the following error message: Connect-CIServer : 5/10/2012 2:22:57 PM Connect-CIServer For...
View ArticleAll vCloud VMs in a provider vDC
Trying to get all VMs use a provider. The issue is making the call from the provider to then get all the vApps - it cannot be made this way Does anyone have a clean way of perfroming this action? ( A...
View ArticleObtain vApp expiration date
Hey All,Im trying to get a vApps expiration date using PowerCLI. I can: $FrankApp = Get-CIVApp -name "Frank" $FrankApp.RuntimeLease Days : 30Hours : 0Minutes :...
View ArticleExample for configuring VM's "guest properties" (i.e. OVF settings)
Following is an example for configuring a VM's "guest properties" (in vSphere this is called "OVF settings/environment") using PowerCLI (or API).Note that this script was designed to run as an "org...
View Articlecivm createmetadata fails with " Tag is not expected in requests for version...
Hi all, I'm following the directions in this (excellent) article: http://blogs.vmware.com/vipowershell/2012/03/working-with-vcloud-metadata-in-powercli.htmlwhich is the only documented way I've found...
View ArticleBuild URLs for: VM Console, vCloud Director vApp, VM properties in vSphere
Hi all I made a script to generate URLs for the following access:- Open a VM's Console in vSphere Web Client- Open vApp (to which the VM corresponds to) in vCloud Director- Open the VM's Summary Tab in...
View ArticleConnect-CIServer -Server vcloud.ourdomain.com Issues
Hi I have now tried PowerCLI with ESX and vCenter, so far so good.We have a vCLoud Area as well (v5.5) So when i listed the VMs in vCenter, for area folder 'vCloud Director' this worked but the links...
View ArticleThe VCD - vCenter Glue - Linking VMs and Events
Hi All I have sucessfully talked to the vCenter running our Blades and hosting vCLoud, and vCloud itself I can see VMs from both sides. 1. What i am looking for is the glue that allows you to link the...
View ArticlevCloud Director Change e1000 to VMXNET3 Online
Hi Guys, I have been made aware of a VMware KB that is supposed to have a script that allows the change of a primary NIC from e1000 / Flexible to VMXNET3 online and it interacts with VMTools to notify...
View ArticleClone VApp Template to another Org
I am trying to clone a VAPP template from a VDC in OrgA to a VDC in OrgB in vCloud Directory 5.5 A snippet of the script is below: $sourceVappTmpl = Get-CIVappTemplate -Name 'myvapp' $destOrgVdcName =...
View ArticleAny way to eject all media?
Hi, I am trying to eject the media of all vm's in an org but I am having trouble. Is there an easy way to do this? As an example with just one vm. PowerCLI C:\Program Files...
View ArticleWorking with vCloud Metadata in PowerCLI
Based on Jake Robinson's post at GeekAfterFive - Infrastructure as Code, it seems the sample scripts in Alan Renouf's March 30, 2012 post to the VMware PowerCLI Blog, Working with vCloud Metadata in...
View ArticleVcloud powerCLi - VM inventory report
HI all, So i wrote this quick script to generate a report of VMs info and more specifically, who owns them. The issue is that I am getting some rows with nothing but the Owner, and all the other...
View ArticleHow can i add a nic to a vapp deployed by vcd1.5
Hi any advise how i can add a nic to a vapp using power cli i'm have powercli 4.1 with vcentre 4.1 U1
View ArticleStorage Profiles
Hello I am doing some testing with powercli and vCloud director. PowerCLI C:\> $storage = Get-OrgVdc -name OrgvdcPowerCLI C:\> $storage.StorageLimitGB200 200 is actually the combined storage from...
View ArticleUnable to connect to VCloud Director 5.1 build 5.1.1.868405
Hi. We are not able to connect to a VCloud Director ver. 5.1.1 868405. When we try a: connect-ciserver we get the following error: Connect-CIServer The underlying connection was closed: The...
View Article