Home > Blogs > VMware PowerCLI Blog


New Release: VMware PowerCLI 6.5.2

The past couple releases have introduced some new and exciting modernizations for PowerCLI. We’ve moved from Snapins to Modules, leaving behind registry settings and the need for an installer and making packaging much easier. We then introduced you to PowerCLI installation through the Microsoft PowerShell Gallery, making installation and updates a single command.

All of these lead up to us delivering more frequent releases and more timely features and bugfixes. Only three months ago, we introduced PowerCLI 6.5.1, and today we’re delivering 6.5.2, cutting our release time in half from the past. We still have a lot of work to do on our processes, but we look forward to delivering frequent, high quality releases of the best automation library for VMware!

PowerCLI 6.5.2 has some great improvements. They come in three main areas:

  • Addition of the ‘InventoryLocation’ parameter to the following cmdlets: Move-VM, Import-VApp, New-VApp
  • Ability to mount a Content Library sourced ISO with the New-CDDrive cmdlet
  • Updated Support Around Experimental Features

Let’s take a closer look at each of these.

New Parameter: InventoryLocation

The main purpose of the ‘InventoryLocation’ parameter is to specify a folder the VM or vApp should be placed during their related actions. The expected input for this parameter is a type of ‘FolderContainer’. Previously, the only option was ‘Destination’ and it accepted a folder, ESXi host, cluster, or resource pool. The issue was only one item could be specified at a time. Therefore, this addition is nice because it reduces the total number of steps needed to either move a VM between vCenter Servers or when deploying a new VM/vApp.

First example, moving a VM between vCenter Servers. By default, the VM would be moved to the root of the Datacenter in the ‘VMs and Templates’ view. Technically, it would be moved to the ‘vm’ folder but that’s hidden from the GUI view. This new parameter allows us to skip the follow-up ‘Move-VM’ command and place the VM in the proper folder at time of the migration.

Cross vCenter vMotion Example using Inventory Location Parameter

Second example, creating a new VM by importing a vApp. As with the previous example, this cuts down the steps in deploying this VM and streamlines the process.

Import-VApp example while using the Inventory Location parameter

Using Content Library Sourced ISOs

The ‘New-CDDrive’ cmdlet has a new parameter by the name of ‘ContentLibraryIso’. This allows us to mount an ISO which has been presented through vSphere’s Content Library. Here’s an example:

Example usage of the New-CDDrive cmdlet and Content Library ISOs

vSphere’s Content Library is a great resource and I’m really happy to be able to take better advantage of it through PowerCLI!

Experimental Feature Updates

If you’ve had the chance to read through our documentation, perhaps you’ve noticed a couple of the features or parameters which were marked as experimental. Several of these have been tested and we have been able to remove the functionality’s ‘experimental’ messaging.

Some Examples:

  • Set-HardDisk -ZeroOut: This parameter can be used to zero out a disk when the PowerCLI session is connected directly to the ESXi host.
  • New-HardDisk -AdvancedSetting: The experimental part of this parameter was centered around the Storage Distributed Resource Scheduler (SDRS) rule association.
  • New-VM -AdvancedSetting: The experimental part of this parameter was centered around the SDRS (SDRS) rule association.
  • Install-VMHostPatch: The whole cmdlet was experimental and has been approved for supported usage.

Summary

PowerCLI 6.5.2 is the first of our change to having more frequent releases. While these iterative releases may not be as packed full of new features as all the prior releases, we are able to provide new functionality and resolve any issues faster than prior versions. Some proof of that is the addition of the ‘InventoryLocation’ parameter to several cmdlets, the ‘ContentLibraryIso’ parameter to the New-CDDrive cmdlet, and taking several features and cmdlets from experimental to supported!

Don’t wait, Update-Module today!

Update Module Example

For information on the Microsoft PowerShell Gallery update process, see the following blog: Update PowerCLI From the PowerShell Gallery

For more information on changes made in VMware PowerCLI 6.5.2, including improvements, security enhancements, and deprecated features, see the VMware PowerCLI Change Log. For more information on specific cmdlets, see the VMware PowerCLI 6.5.2 Cmdlet Reference.

This entry was posted in General and tagged , on by .
Kyle Ruddy

About Kyle Ruddy

Kyle Ruddy is a Senior Technical Marketing Architect working for VMware R&D in the Cloud Platform Business Unit. Kyle currently focuses on vSphere and VMware Cloud on AWS automation and the associated automation frameworks including all things API, CLI, and SDK. Kyle is also a Microsoft MVP and long-term vExpert whom can be found blogging on VMware blogs, http://blogs.vmware.com/vSphere and http://blogs.vmware.com/PowerCLI, and his personal blog, https://www.kmruddy.com. His Twitter: @kmruddy

46 thoughts on “New Release: VMware PowerCLI 6.5.2

  1. Pingback: Updating PowerCLI through the PowerShell Gallery - VMware PowerCLI Blog - VMware Blogs

  2. Kenneth German

    great update 🙂
    Is there a reason for not having the -InventoryLocation on New-VM? ex. when importing a vm to the repository with the -VMFilePath param.

    Reply
    1. Kyle RuddyKyle Ruddy Post author

      Have you tried using the ‘Location’ parameter? That should be the where you want to specify the folder while using the New-VM cmdlet.

      For consistency’s sake, I agree there should be a InventoryLocation parameter added and I will be making a feature request to get that added. I just want to make sure we’re not missing anything functionality wise as it is.

      Thanks!

      Reply
      1. Kenneth German

        Hi Kyle,
        thanks for the reply. I’m not sure why I didn’t use the -location.. I have considered it as param as -Destination is for Move-VM, so thanks for the heads up 🙂
        Still.. I’m looking forward to have the -InventoryLocation for consistency 🙂
        Great work with the posts.

        regards
        Kenneth

        Reply
  3. Pingback: Updating PowerCLI through the PowerShell Gallery – VMpro.at

  4. Pingback: New Release: VMware PowerCLI 6.5.2 – VMpro.at

  5. Pingback: VMware PowerCLI 6.5.2 released | Virtual Allan

  6. Sergey

    Hi Kyle!

    Thanks for the update and nice article.
    I have a question about SDRS rules. Currently I have to create them by creating some custom objects, but really want to have standard cpmmand like New-SDRSRule or something like this. Is there any chance to have this implemented?

    Best regards,
    Sergey Sypalo

    Reply
  7. Dick Tracy

    I have some major issues trying to install this on a disconnected network.. I created my own installer.

    http://www.powershellcrack.com/2017/09/installing-powercli-on-disconnected.html

    Reply
  8. norton.com/setup

    Norton, one of the largest security products providers, has made it quite easy to protect your computer system from the malicious online activities, viruses, Trojan horses, scams and other threats. By installing a Norton setup to your device, you can be sure of the privacy of your important files as well as confidential information. Be it a business or consumer, Norton offers a special security software to suit the needs of everyone. You can choose anyone from the following:

    Reply
  9. Paddy Riley

    Hey Kyle,

    Thanks for all this information. I am attempting to do a Get-ViEvent in this release and it returns an error: “Error in deserializing body of reply message for operation on ‘ReadPreviousEvents'”

    Any ideas with this? I tested on 6.5 Release 1 and this is working.

    Regards,
    Paddy.

    Reply
  10. Pankaj

    Receiving below error message when tried to access older vievents

    et-VIEvent : 12/29/2017 3:06:16 PM Get-VIEvent Error in deserializing body of reply message for operation ‘RetrieveProperties’.
    + CategoryInfo : NotSpecified: (:) [Get-VIEvent], VimException
    + FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetEvent

    Reply
  11. Sergey

    in powercli 6.5.4.7

    Get-VIEvent : 1/9/2018 4:32:17 PM Get-VIEvent Error in deserializing body of reply message for operation ‘ReadPreviousEvents’.
    At D:\InitialNewHost.ps1:1703 char:19
    + … hostevents = Get-VIEvent -start 01/08/2018 -finish 01/09/2018 | where …
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [Get-VIEvent], VimException
    + FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetEvent

    Reply
  12. contact microsoft support

    contact microsoft support Microsoft and its suite of products are known to be quality-based in every aspect, and more often than not businesses revolve around Microsoft Office suite. To the healthy running of not only big businesses but also small businesses and home users, it is essential that all systems work in an efficient manner. At times you could experience inconveniences or mishaps with any of its products or services rendered by this company, and at the same time, you could rely on Microsoft Tech Support Service to get your issue resolved in an efficient manner.

    Reply
  13. citibank north america routing number

    I am a regular visitor to your website and have always liked the kind of work that you do. I genuinely get new ideas and thoughts that help me a lot in my personal work as well.

    Reply
  14. Mother's Day Images 2018

    Happy Mothers Day 2018 Images

    Reply
  15. makishm

    happy mother day 2018

    Reply
  16. When is Mothers Day Date

    I am glad to see your post, thanks for sharing useful stuff.

    Reply
  17. garmin.com/express

    Garmin.com/express – Garmin Express is an application which provides the ability to access, control and manage all other Garmin devices from one place. Furthermore, using Garmin.com/express you can manage your device downloads and updates. In addition, you can sync all your fitness data or other information and ensure accurate navigation even on streets.

    Reply
  18. webroot.com/safe

    Webroot.com/safe – Activate Your Webroot Com Safe on your laptop, PC, Smartphone etc & secure your devices. Let’s Get Started with Webroot Safe at http://www.Webroot.com/safe & Activate Webroot Safe.

    Reply
  19. webroot.com/safe

    Webroot.com/safe – Activate Your Webroot Com Safe on your laptop, PC, Smartphone etc & secure your devices. Let’s Get Started with Webroot Safe at http://www.Webroot.com/safe & Activate Webroot Safe.

    Reply
  20. McAfee.com/Activate

    McAfee.com/Activate – McAfee Antivirus one of the popular Antivirus and Security System around the Globe. It helps many users to provide protection from the virus, trojan, spyware, and many similar threats. If you want to get started with McAfee then you have to go through the steps to McAfee.com/Activate. Secure your PC, Laptop, Tablet, and Smartphones with McAfee Antivirus and follow these to McAfee.com/Activate on your respective device.

    Reply
  21. Webroot.com/safe

    Webroot.com/safe – Activate Your Webroot Com Safe on your laptop, PC, Smartphone etc & secure your devices. With Webroot you always feel safe and protected using all your device, while running your business or using it at home.

    Reply
  22. Togel Online

    Thanks again for the post.Really looking forward to read more. Much obliged.

    Reply
  23. z.x

    PowerCLI D:\> foreach ($i in 1..9){Start-vm -vm z1-00$i }
    Start-vm : 2018/8/31 20:58:35 Start-VM 调用的目标发生了异常。
    所在位置 行:1 字符: 22
    + foreach ($i in 1..9){Start-vm -vm z1-00$i }
    + ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [Start-VM], VimException
    + FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VimAutomation.ViCore.Cmdlets.Commands.StartVM
    怎么解决?谢谢

    Reply
  24. McAfee.com/activate

    McAfee.com/Activate – Enter 25 Digits Alpha-Numeric McAfee Activate Product Key at http://www.mcafee.com/activate. Get Started with McAfee Activation Today!

    Reply
  25. Norton.com/setup

    Simple steps to download and install Norton setup. Just enter http://www.norton.com/setup Product key and get started with Norton.com/setup.

    Reply
  26. activation.kaspersky.com

    Kaspersky has been offering the best online security solutions for protecting the users’ devices as well as data against the online threats. These online threats might get injected to the device while the users are trying to surf the internet for various purposes like banking, shopping, and many more.
    activation.kaspersky.com
    activation.kaspersky.com

    Reply
  27. Dragon Naturally Speaking Support

    Dragon Naturally Speaking Support – The company Dragon System of Newton has developed a speech recognition software which is called as Dragon Naturally Speaking or Dragon for PC. Nuance Communications has acquired the software after its merger with the Lernout & Hauspie speech products. You can download and installed the Dragon Naturally Speaking software on your Windows as well as Mac computers.

    Dragon Naturally Speaking Support

    Reply
  28. Roadrunner Email

    Roadrunner Email – TWC Email Login at RR.com or rr com. Roadrunner Webmail Access by Roadrunner Login, Sign in, Sign up etc. Time Warner Email or RR Mail Login Today by using TWC ID.

    Roadrunner Email

    Reply
  29. Zain Ali

    You have shared such a nice information here.. Thank and also view National Boyfriend Day Quotes Funny

    Reply
  30. www.mcafee.com/activate

    http://www.mcafee.com/activate – McAfee is an extensive security tool which provides the offline as well as online or cloud security and protects your data. If you have stored your data in the cloud then McAfee offers the best protection to keep your online data safe.

    Reply
  31. mcafee.com/activate

    mcafee.com/activate – McAfee allows protection from the viruses, malware and other online threats for the consumers as well as business users. The products developed by the company made it easy for the users to protect their digital life.

    Reply
  32. HughesNet Customer Service

    HughesNet Customer Service – A subsidiary of Echostar, which offers the internet and television services based on satellite. The company provides the nextgen internet connection to the users.

    Reply
  33. Malwarebytes technical support

    Thank You for such a nice blog.
    If you are a user of Malwarebytes and experiencing any issue with it can Connect with malwarebytes technical support to solve your problems.

    Reply
  34. tndte result oct 2018

    we know everything about powercil…

    Reply
  35. Pingback: VMware Power CLI 6.5.2 Released | TechCrumble

  36. Canon Printer Support

    Canon Printer Support – Call Canon Printer Support Number for Technical issues, errors, Setup, Drivers Download etc. from Experts. Canon technical number

    Reply
  37. Bitdefender Support

    Bitdefender Support – Bitdefender develops and sells antivirus software, internet security software, endpoint security software, and other cybersecurity products and services for both home and business use. With so many great features and services, BitDefender has become the First choice of many users.

    Reply
  38. Kaspersky Support

    Kaspersky Support – Direct Number for All Mcafee Antivirus Related Errors, Download, Uninstall, Activate and Reinstall or Billing Related Help.

    Reply
  39. Call Apple Support

    Get instant and 24/7 Apple Technical Support. Our expert apple technical support representatives are available 24×7 to provide you best solution. They are well-trained and certified customer care executives. Call Apple Support Number Now +1-855-557-0666
    We provide the solution for all Apple products
    • MacBook Support
    • iPad Support
    • iPhone Support
    • iTunes Support

    Reply
  40. mcafee.com/activate

    mcafee.com/activate- McAfee Installation is such an easy or simple process as you have to make sure that above-mentioned prerequisites should be fulfilled before getting started with the McAfee Activation Process.

    Reply
  41. www.Webroot.com/Safe

    http://www.webroot.com/safe -Webroot has a wide range of product such Spy Sweeper, Windows Washer, Webroot Internet Security Essential, and Webroot SecureAnywhere etc. The first commercial product which was launched by the Webroot is Webroot Windows Washer, which is a trace removal agent. Webroot Spy Sweeper has been designed to remove and block the spyware from your system. With the Webroot Spy Sweeper’s enterprise version Webroot entered into the enterprise market. Webroot offers the protection to your Windows PC, Mac and Mobile devices from the online threats, spyware and cyber attacks etc.

    Reply
  42. ball games

    There are certainly a lot of details like that to take into consideration. That is a great point to bring up. I offer the thoughts above as general inspiration but clearly there are questions like the one you bring up where the most important thing will be working in honest good faith. I don?t know if best practices have emerged around things like that, but I am sure that your job is clearly identified as a fair game. Both boys and girls feel the impact of just a moment?s pleasure, for the rest of their lives.

    Reply
  43. Apple Support Phone Number

    This Blog appears to receive many visitors or customer who is looking for this type of blogs. I guess having something useful or substantial to give info on is the most important thing.

    If you are looking for support for apple then contact us on this number (+1)877-771-8477 visit here https://apple-supportphone.com/

    Thank You!!!

    Reply
  44. www.mcafee.com/activate

    Well i am a regular reader of new blogs and i found this one is also such a nice one… keep it up

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

*