Powershell

  • Power Shell scripts for Virtual machines

    List of each of your vms: Get-VM | Where {$_.PowerState -eq &quot;PoweredOn&quot;} | Select Name, Host, NumCpu, MemoryMB, <code> @{N=&quot;Cpu.UsageMhz.Average&quot;;E={[Math]::Round((($_ |Get-Stat -Stat cpu.usagemhz.average -Start (Get-Date).AddHours(-24)-IntervalMins…

    Read more..

  • PowerShell Scripts for Esxi

    List all ESX Hosts and their Service console information: Get-VMHost | Get-VMHostNetwork | Select Hostname, ConsoleGateway, DNSAddress -ExpandProperty ConsoleNic | Select Hostname, PortGroupName, IP, SubnetMask,…

    Read more..

  • PowerShell Scripts for Datastore

    Number of VMs in Datastore: Get-Datastore | Select Name, @{N=”NumVM”;E={@($_ | Get-VM).Count}} | Sort Name The following script was used to add the datastore’s from…

    Read more..