What's the update?

CBT Management with Power CLI

List all virtual machines where CBT enabled  Get-VM| Where-Object{$_.ExtensionData.Config.ChangeTrackingEnabled -eq $true} Check specific virtual machines where CBT enabled  Get-VM  “TEST-VM-01” | Where-Object{$_.ExtensionData.Config.ChangeTrackingEnabled -eq $true} List all virtuals machine where CBT disabled Get-VM| Where-Object{$_.ExtensionData.Config.ChangeTrackingEnabled -eq $false} Check specific virtual machines where CBT disabled Get-VM  “TEST-VM-01” | Where-Object{$_.ExtensionData.Config.ChangeTrackingEnabled -eq $false} Note : In GUI mode we cannot […]

Read More

Snapshot Management with Power CLI

Command to list the  properties of snapshot  using  power cli get-vm | get-snapshot | format-list Description Created Quiesced PowerState VM VMId Parent ParentSnapshotId ParentSnapshot Children SizeMB IsCurrent IsReplaySupported ExtensionData Id Name Uid Generate complete snapshot inventory with few details        get-vm | Get-Snapshot Export complete snapshot inventory to csv file get-vm | get-snapshot […]

Read More

Power CLI Command to List Connected Disks to ESXi Hosts

Get connected disk details including name , Multipathing , LunType  of all ESXI HOSTS in vCenter Get-VMHost | Get-ScsiLun -LunType disk User below command to export all the details to CSV Get-VMHost | Get-ScsiLun -LunType disk |export-csv C:\diskinfo.csv Get connected disk details including name , Multipathing , LunType  for Specific ESXI HOST Get-VMHost  “ESXI-TEST.LOCAL.COM” | Get-ScsiLun […]

Read More

Script to List Virtual Machine HW ,VM Tools Version , Tools Status

Below Script will get  virtualmachine hardware version , tools version , Tools status , Tools version status . Connect-VIServer -Server VM-VC.TEST.COM  -User  root -Password ******** Get-VM | Select @{N=”VMName”; E={$_.Name}}, @{N=”HardwareVersion”; E={$_.Extensiondata.Config.Version}}, @{N=”ToolsVersion”; E={$_.Extensiondata.Config.Tools.ToolsVersion}}, @{N=”ToolsStatus”; E={$_.Extensiondata.Summary.Guest.ToolsStatus}}, @{N=”ToolsVersionStatus”; E={$_.Extensiondata.Summary.Guest.ToolsVersionStatus}}, @{N=”ToolsRunningStatus”; E={$_.Extensiondata.Summary.Guest.ToolsRunningStatus}} | Export-Csv  C:\vmdata.csv Output  VMName HardwareVersion ToolsVersion ToolsStatus ToolsVersionStatus ToolsRunningStatus TEST-VM-01 vmx-11 10249 toolsOld guestToolsNeedUpgrade guestToolsRunning TEST-VM-01 […]

Read More

Script For Datastore Utilization

Script For Datastore Utilization This script is very useful to generate the Datastore Utilization of  VMware Infra Save the below script as .PS1 extension  and Run fron vSphere Power CLI ,  Out Put will be saved on  the Location where we mention  , here it is c:\datstoreusage.csv Connect-VIServer (MyvCenter) -User (My Username)-Password (My Password) Get-Datastore | Select Name, @{N=’Type’;E={“$($_.Type)$($_.ExtensionData.Info.Vmfs.MajorVersion)”}}, @{N=’CapacityGB’;E={[math]::Round($_.CapacityGB)}}, […]

Read More

Script to List Thin provisioned virtual disks with disk size Info

Script to List Thin provisioned virtual disks with disk size Info It is very useful script for system admins to generate list of virtual machines having thin disks with details to CSV format .   Connect-VIServer (MyvCenter) -User (My Username)-Password (My Password) $report = @() foreach ($vm in Get-VM){ $view = Get-View $vm if ($view.config.hardware.Device.Backing.ThinProvisioned -eq $true){ $row = ” […]

Read More

Script to List VM and associated folder and Datastore name

Script to List VM and associated folder and Datastore name This script is very useful to identify where the VMs are located on the VMware Infra. Save the below script as .PS1 extension  and Run fron vSphere Power CLI ,  Out Put will be saved on  the Location where we mention  , here it is […]

Read More