Use below script to generate data store utilization report cluster wise : $report = @() foreach($cluster in Get-Cluster){ Get-VMHost -Location $cluster | Get-Datastore | %{ $info = “”…
Category: Power CLI
PowerCLI command line .
VMware Cloud On AWS (PowerCLI )
Requirements It requires PowerCLI 11.0.0 (specifically, the VMware.VimAutomation.Vmc module) and Microsoft Windows. Instruction Step 1 – Installing the module Option A – automatic installation from PowerShell Gallery Execute:Install-Module -Name VMware.VimAutomation.VmcPreview -RequiredVersion 1.0.0.11171858 Option…
PowerCLI Snippets Tutorial
Configuration Import/Export vCenter Roles #Export Role $role = Get-VIRole -Name “MyRole” |Get-VIPrivilege; $role.id -join “,” #Import Role (Use the output from the command above) New-VIRole -Name “MyRole” -Privilege (Get-VIPrivilege -Id…
Space reclamation of VMFS 5 Datastores by using esxcli
what is VMFS datastore ? Create VMFS datastore. VMFS datastores are used as repositories for virtual machines’ files. They can be set up on any SCSI-based storage device that the…
PowerCLI Error: “The underlying connection was closed: An unexpected error occurred on a send.”
Attempting to use VMware vSphere PowerCLI’s Connect-VIServer to a vCenter instance fails with error : “The underlying connection was closed: An unexpected error occurred on a send.” So today I…
Get WWPN of the hosts FiberChannel HBA
What is worldwide port number (WWPN) . A worldwide port number (WWPN) is unique identifier for each FC port of any Fibre Channel device. For server, we have a WWPN…
Virtual Machine’s Boot status (booting to the Guest OS or being forced to boot into BIOS ) by Power CLI sctipts .
Virtual Machine’s Boot status : <# .NOTES **************************************** Created by: Rajiv Pandey Web URL: www.vthesis.wordpress.com **************************************** .DESCRIPTION It will display the VM’s boot status , either VM’s booting to…
ESXi host installation date via Power CLI scripts .
ESXi host installation date : <# .NOTES **************************************** Created by: Rajiv Pandey Web URL: www.vthesis.wordpress.com **************************************** .DESCRIPTION It will display the installation date of an ESXi host . #> Function…
Outdated VM-tools VM list with version by power CLI scripts .
VMware Tools ? VMware Tools is a suite of utilities that enhances the performance of the virtual machine’s guest operating system and improves management of the virtual machine. … You…
Get VM’s Cluster Host and Data Store Information with Powercli script
VM’s Cluster Host and Data Store Information with Powercli script : we can able to get the desired output . Get-VM -Name (Get-content c:\vmname.txt)| Select Name, @{N=”Cluster”;E={Get-Cluster -VM $_}}, @{N=”ESX…