-

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

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,…
-

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…