Error handling with PowerCLI 4.1

posted

Complex scripts need to handle errors and resolve common error scenarios without user interaction. A step in that direction is exposing the entire specter of vCenter server error hierarchy along with PowerCLI specific exceptions (for example when validating input parameters).  This improvement makes possible to write scripts which handle expected errors and deal with them Read more...

Deploying a VM with Static IP in 3 Steps

posted

VM customization is a very powerful feature that can make miracles during the deployment process. Since vSphere PowerCLI 4.0 U1,  you can use cmdlets to modify a number of network settings of the newly created virtual machines. Here is how to do it: Regards, Nedko Nedev Member of PowerCLI Dev Team Read more...

Customizing Guest Cmdlets

posted

PowerCLI has several cmdlets that work inside the guest of a VM: Guest network interface cmdlets: Get-VMGuestNetworkInterface, Set-VMGuestNetworkInterface Guest route cmdlets: Get-VMGuestRoute, Set-VMGuestRoute, New-VMGuestRoute, Remove-VMGuestRoute Resizing of guest disk partitions: Set-HardDisk These cmdlets are script-based and this makes them user-customizable. By default, they are supported on Windows (XP, 2003) and RedHat 5 guest operating systems. Read more...

Output type changes in PowerCLI 4.1

posted

In PowerCLI 4.1 we changed the namespaces in which output types live. This was done to improve the internal structure and enable other VMware teams to write cmdlets for the products they develop. While the types remain the same (save for new features), the namespaces have changed and this affects scripts which use full namespace Read more...

ManagedObjectReference Made Easier

posted

PowerCLI 4.1 introduces easier way to initialize ManagedObjectRefernce (MoRef) instances which are necessary while playing with the Get-View cmdlet. Till now there were several ways to get MoRefs. The most popular one is to get the view object and to use its MoRef property. Another approach is to parse the values of the ID into Read more...

vDS in PowerCLI 4.1

posted

At last vDS features are here with the new PowerCLI . The vSphere PowerCLI 4.1 release is the first touch of PowerCLI with vNetwork distributed switches, so please don’t expect to find fully supported vDS functionality in it. Still as you probably know, the Get-View cmdlet provides an opportunity to add extra functionality to your PowerCLI Read more...

PowerCLI 4.1 is out

posted

Tonight we released PowerCLI 4.1 Feature Highlights: Easier to customize and extend PowerCLI, especially for reporting Output objects can be customized by adding extra properties Better readability and less typing in scripts based on Get-View. Each output object has its associated view as nested property. Less typing is required to call Get-View and convert between PowerCLI Read more...