POWERCLI

By: Rajesh Radhakrishnan

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 ...

30/01/2018
Published 4 weeks ago
By: Rajesh Radhakrishnan

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...

27/01/2018
Published 4 weeks ago
By: Rajesh Radhakrishnan

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...

27/01/2018
Published 4 weeks ago
By: Rajesh Radhakrishnan

Understand Basic Commands – vSphere Power CLI

After Connecting to vCenter from POwer CLI  Follow below commands List Datacenter Inventory > Get-Datacenter Name —- DATACENTER NAME  List Cluster Inventory > Get-Cluster Name           HAEnabled  HAFailover DrsEnabled DrsAutomationLevel                ...

27/01/2018
Published 4 weeks ago
By: Rajesh Radhakrishnan

Connect vCenter or ESXi Host From vSphere Power CLI

> Connect-VIServer  “vCenter Name / IP ”     It will ask for user name and password to access vCenter  , or alternate we can add username and password to same line . Use the below basic commands > Get-Esx “ESx hostname/...

27/01/2018
Published 4 weeks ago
By: Rajesh Radhakrishnan

Installing vSphere PowerCLI

PowerCLI is typically installed on a vSphere administrators Microsoft Windows based desktop system or anywhere where you may currently run the vSphere Client, PowerCLI will access the vSphere API in a similar way to the vSphere Client so the same...

27/01/2018
Published 4 weeks ago
By: Rajesh Radhakrishnan

How to Enable Remote Desktop (RDP) Remotely Using PowerShell

Imagine about a situation where you cannot access your virtual machines through VM console and there is no RDP enabled and your Critical Application is Down .Recently I faced this challenge  and was not able to open windows 2012 R2...

21/09/2018
Published 4 weeks ago