現在の PowerCLI のバージョンを確認するコマンドレット。

    PowerCLI C:\> Get-PowerCLIVersion
    
    PowerCLI Version
    ----------------
       VMware vSphere PowerCLI 6.3 Release 1 build 3639347
    ---------------
    Component Versions
    ---------------
       VMware Cloud Infrastructure Suite PowerCLI Component 6.3 build 3639341
       VMWare AutoDeploy PowerCLI Component 6.0 build 3511413
       VMWare ImageBuilder PowerCLI Component 6.0 build 3511413
       VMware vSphere PowerCLI Component 6.3 build 3639341
       VMware VDS PowerCLI Component 6.3 build 3639341
       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
       VMware vSphere Update Manager PowerCLI 6.1 build 3607502
    
    PowerCLI C:\> Get-PowerCLIVersion --help

vSphere PowerCLI はバージョンが進むにつれ、着実に高機能・多機能化しています。

vSphere PowerCLI 6.3 Release 1 Release Notes
http://pubs.vmware.com/Release_Notes/en/powercli/63r1/powercli63r1-releasenotes.html

The Get-VM cmdlet has been optimized and refactored to ensure maximum speed when returning larger amounts of virtual machine information. This cmdlet should now run faster and increase the speed of reporting and automation for all scripts that use it.

このバージョンで最も気に入っている機能は Get-VM のパフォーマンスの改善です。古のバージョンで Get-VM を高速にする場合、Get-VM の使用を諦め、Get-View でひたすらフィルタリングするという手法がありました。これはスクリプトの可読性を大幅に下げてしまうので、Get-VM の高速化は大歓迎です。

なお、コマンドラインにも関わらず VMware Customer Experience Improvement Program (CEIP) 機能も付いていて、ユーザービリティの向上の一助となっています。なお、CEIP は、最初の PowerCLI の実行時に、参加、不参加を訊かれますが、任意のタイミングで以下のコマンドレットを実行することで CEIP への参加、不参加を切り替えることができます。

    Set-PowerCLIConfiguration -Scope User -ParticipateInCEIP $true