DTD 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 ArticleTrying to utilize Powercli to add a new NICs within vCloud 5.1
Hoping someone has used Powercli to automate adding a new "Organization VDC network", choose an "Adapter Type", change the "IP Mode" to manual, and populate the "IP Address" into vCD 5.1 Any help would...
View ArticlePowerCLI/API for update storage profile in vDC
Hi,I found how to add or remove storage profile via vcloud API (VMware vCloud Director Documentation Center), but does anyone know how to do update (change size or disable) storage profile via API or...
View ArticleAdd new NIC to VM (like New-CINetworkAdapter)
Hi all I'm trying to find out how to simply add a new NIC to a VM within a vApp. Something like "New-CINetworkAdapter" would be great, but unfortunately does not exist.. Anyone some experience or tipps...
View ArticleSetting Guest Customization Section Fails in 5.5
Hi, Since migrating to vCloud 5.5 the following script fails which worked in 5.1: $CIVMs = get-CIvApp $CIvAppName | get-civm Foreach ($vm in $CIVMs) { write-host "Customizing" $vm.name...
View ArticleStart-Job with PowerCLI not working
This script never gets past the first write-host line in the start-job... # Do work$csv = Import-Csv tmpbuild.csv foreach ($item in $csv) { Start-Job -RunAs32 -ScriptBlock { # Add...
View ArticlevCloud VM Monthly report vCpu|RAM|Storage
Hello , I am looking for script which will provide Monthly report of vCpu/ RAM & Storage utilization by each Individual vCloud Director Virtual Machine If the vCloud Director script is not...
View ArticleHow to change Storage Profile of VM in vAppTemplate?
Hi everyone, I've got a project in front of me to migrate existing VMs from an existing storage profile or the * profile to a newly created storage profile. I've determined how to get this done for...
View ArticleImport-CIVAppTemplate is erroring out with DiskContentsPending error in vCD
Hi, I am trying the Import-CIVAppTemplate command in PowerCLI for vCloud Director and it is failing as below after some 15% completion.The vAppTemplate import never succeeds after this error.I am...
View ArticleChecking the Synchronize time: flag in Virtual Machine Properties (GENERAL)...
Hi, I'm working on a powercli scripts to check whether the flag "Sycronize Time" was checked or not for each VM inside a vApp. I tried to go one by one in all the properties and methods in...
View ArticleAppending Firewall Rules to vShield Edge with PowerCLI Script
Hi, I have a script which enables us to upload 4k worth of firewall rules, but every time it executes, all existing rules are over written. Is this something to do with the API or just a scripting...
View ArticleUsing Connect-CIServer in a Start-Job
Has anyone been able to complete something like this? This works perfectly in a plain PoSh window but running in a Start-Job it never gets past the connect-ciserver. The job shows running and...
View ArticleHow to run vCD powershell cli via RSH
I am trying to run vCloudDirector powerCli via rsh.I ran vSphere powerCli with the following options successfully. But when I try to connect to the vCD, it could not recognize the vCD commands.I am...
View ArticleGet-CIVM returns Not Found - 404
I have VPC OnDemand and I was able to build a new FreeBSD server with a public IP. Everything works fine. But, when I try to play with PowerCLI I am getting an error. Here is what I do. ConnectCIServer...
View ArticlevApp Guest Customization
Hi I am trying to uncheck the 'guest customization' box for each of my Virtual Machines within the vApp I have created. Is there a PowerCLI command I can run to do this instead of manually going into...
View ArticleGateway address and subnet mask have to be provided...
I am trying to get this script working for creating an OrgNetwork in vCD 5.1. When I run it I get an exception saying that "Gateway address and subnet mask have to be provided when creating...
View ArticleMigrate CIvAPP from one Resource Pool to another?
Hi, I'm looking for a way to migrate/vmotion the VM's in a CIvApp from 1 resource pool to the another in the same OrgVDC. Basically want to vmotion the VM's to another host. The hosts in the other...
View ArticleSetting properties of VMs in a vApp
I have a few vApps with 25 VMs each in vCloud Director and would like to set a few properties to on / off with PowerCLI as the gui is a mission. These options include: Set "Enable guest customization"...
View ArticleAdd a VM to a vApp using PowerShell
Hello, I am trying to add a VM to a vApp using PowerShell. I know that there is no explicit cmdlet to do it, and I need to recompose the vApp. I've used the great Instantiation script from...
View Articlemissing PowerCLI cmdlets for external network settings in vCD 5.1?
I have 59 external networks defined in my Provider VDC and over a hundred directly connected OrgVDC networks mapping back to those. I need to update the DNS records for the static IP pools associated...
View Article