7 Replies Latest reply on Apr 3, 2019 2:48 AM by sspikent

    New-VDSwitch - Can I ask vCenter, what versions are supported

    sspikent Novice

      I'm writing a script to create new VDSwitches based on a predefined set of standards. In order to try and future-proof the script, I'd like to set it to create the highest version number supported by the environment by default.

       

      The message from PowerCli, clearly shows that this is defined, how do I get this list, without having to first deliberately generate the error and parsing the data from the error message?

       

           "New-VDSwitch You have specified invalid VDSwitch version. Valid versions are 4.0,4.1.0,5.0.0,5.1.0,5.5.0,6.0.0,6.5.0."