Automation

 View Only
  • 1.  getting number cpu, cores and operating system

    Posted Apr 29, 2021 09:47 PM

    I found some scripting examples here for getting the number of cpu and number of cores, but I also need the operating system along with it.

     

     


    I have tried adding in  $HostOperatingSystem = $vm.ExtensionData.Guest.GuestFullName with another $obj, but no OS, I tried just adding an $obj with $vm.guest.osfullname and still no OS.
    What is the right way to do it?



  • 2.  RE: getting number cpu, cores and operating system
    Best Answer

    Posted Apr 30, 2021 05:40 AM

    Did you try like this?

     

     



  • 3.  RE: getting number cpu, cores and operating system

    Posted Apr 30, 2021 03:42 PM

    Yes that was what I tried, but I must have fat-fingered sometihng.

    Thanks I have what I need now.



  • 4.  RE: getting number cpu, cores and operating system

    Posted Apr 30, 2021 04:28 PM

    You're welcome.
    Btw, I just corrected the code above, the PassThrough on the 1st Add-Member line is not necessary.