Automation

 View Only
  • 1.  vmware - script powershell

    Posted Jun 14, 2022 03:18 PM

    liste os vms dentro de uma pasta e obtenha o gb alocado e a memória usada



  • 2.  RE: vmware - script powershell

    Posted Jun 14, 2022 04:56 PM

    You could do 

    Get-Folder -Name MyFolder | Get-VM |
    Select Name,MemoryGB,
       @{N='UsedMemoryGB';E={$_.ExtensionData.Runtime.QuickStats.guestMemoryUsage/1KB}}

     



  • 3.  RE: vmware - script powershell

    Posted Jun 17, 2022 03:17 PM

    Thanks for the help.

    When I run the script, it brings the result of memory consumption at 0, I tested it on other vms, but it only shows at 0

     

     



  • 4.  RE: vmware - script powershell

    Posted Jun 17, 2022 03:38 PM

    And did you cross-compare this with what you see for those VMs in the web client?
    Perhaps the consumption doesn't reach 1GB?