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 VM console from vSphere Web and  Thick Client and Application Down , its happened After […]

Read More

How to Backup or Recover SPBM with PowerCLI

We have discussed about the SPBM  and how to create SPBM on previous posts , today we are going to discuss about how can backup and restore the SPBM from Power CLI  . Why we need backup or restore operation on SPBM  Just imagine once the case we have to redeploy our vCenter which is […]

Read More

Collect vSwicth Information Using vSphere Power CLI

In this  Post  sharing the Script to collect the Virtual Standard Switch Information from vSPhere power cli to CSV file . You can Modify  the Location of the file to save and directly apply to vSPhere Cli Window or  you can save this as .PS1  extension and run  CLI window . Script  &{foreach($esx in Get-VMHost){ […]

Read More

Virtual Network Management in Standard Switch Using Power CLI

This Post will help you to understand and create multiple port groups , Esxi host network details for complete environment  . Note : Below  commands are used on vCenter with One host , it can be used multiple servers environment . List vSwitch Inventory  Get-VirtualSwitch List Portgroup Inventory  Get-VirtualPortGroup Create a Virtual Switch Get-VmHost | […]

Read More

Find Number of VCPU used in a Cluster and ESXi hosts

This Post explain how can we generate an output contains , Total number of vCpu used in an vCenter Cluster , also it shows many vCPU used per Esxi hosts .  If you have  multiple Cluster it is very easy to find same using below script. Connect-VIServer  “vCenter Name” $TotalNumvCPUs = 0 Foreach ($Cluster in (Get-Cluster |Sort Name)){ $HostNumvCPUs = 0 Write-Host “Cluster: $($Cluster.name)“ Foreach ($ESXHost in ($Cluster |Get-VMHost |Sort Name)){ […]

Read More

NTP Conflagration with Power CLI

Check NTP Services status  Get-VMHost | Get-VmHostService | Where-Object {$_.key -eq “ntpd”}                 Check Firewall exception configuration  Get-VMHost | Get-VMHostFirewallException | where {$_.Name -eq “NTP client”}               Enable the FirewallException to all ESXi Hosts Get-VMHost | Get-VMHostFirewallException | where {$_.Name -eq “NTP […]

Read More

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