vApp 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 ArticleHow to rename a civAppNetwork?
Hi, I would like to rename a CIvAppNetwork from vAppNetwork to IntNat with PowerCLI. I've tried the following:$civapp | Get-CIVAppNetwork | Set-CIVAppNetwork...
View ArticleSample 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 ArticleDoes anyone know how to recompose a vcloud vapp from powercli without having...
I’m struggling to find out how to do this. There doesn’t appear to be much out there (or more likely I can’t find it). It seems to me like this would be a common task, so there must be a way to do...
View ArticleError when cloning a VM related to vCloud Director
Hey there!I have the following cmdlet: New-VM -Name ClonedVM -VM SourceVM -Datastore NewDS -VMHost ESXi -Location Folder -Confirm:$false The problem is that I'm trying to clone a VM that is a part of...
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 Articleget-civm command piped to get-civapp | owner
Basically I've been researching to see how I might pull some reporting data from VCD. I ran across several sites that provide exactly what I am needing, but the problem is they all use the get-civm...
View ArticleSet Mac address of vCloud VM
Hi For a customer I need to regularly clone a production VM into vCloud for a test-environment. The VM needs to have an identical Mac Address because of some old-fashioned licenses. After cloning, the...
View ArticlevCloud: vShield Edge FW Rules
Hi all I'm looking for a way to get and set firewall rules on a vShield Edge firewall in a vCloud environment. My final target is to write two scripts; one that will export the firewall rules from a...
View ArticleVcloud PowerCLI - Email whole Org
Hi CLIers. In vclouds UI we see there is a button to email all available email addresses in that certain vCloud Org. Is there some call that can be made from PowerCLI to perform this Action? Say I want...
View ArticleAdding vShield Edge NAT rules from a CSV file using PowerCLI
I recently read Alan's great post on adding NAT rules here: http://www.virtu-al.net/2014/07/24/working-vcd-edge-gateway-rules-powercli/I have used this successfully for single rules in a lab...
View ArticleDeploy vApp from template while giving the deployed vApp a name, the VMs...
Hello, I am trying to deploy a vApp from a template in the catalog, I have been successful creating the vApp using...
View ArticleIssue with New-OrgNetwork in vCloud 5.1
Hi, I'm trying to create an OrgVDC Network for my newly created OrgVDCs via PowerCLI. Unfortunately I'm getting an erorr stating: New-OrgNetwork : 3/21/2013 2:03:45 PM New-OrgNetwork The...
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 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 Articleexporting firewall/NAT rules from Edge Gateway
Anyone using a powerCLI script to output firewall/nat rules for Edge Gateways (ver 5.1.2) configured on Org VDC networks for documenation purposes? I've been able to pull plenty of information using...
View ArticleNeed to increase Command Timeout from default of 100 seconds
I have a large network with about 1500 IPs assigned to it that is timing out when trying to retrieve it. I need to increase the timeout, How can I do that? This is running against VCD 5.1 PowerCLI...
View ArticleHow to get allocated ip addresses on a network within a certain Organization...
Hi,I cannot figure out how to list all VMs and their IP Address on a Network of Allocated IP Addresses broken down by Organizations. I can view this in the vCloud GUI "Cloud Resources |Eternal...
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 ArticleRemove Catalog?
Does anyone know of a remove catalog command? I know there is a Get-Catalog cmdlet, but I don't see anything to remove one. Thanks. -DB
View Article