Prakas's Accepted Solutions

Try affixing " | ft -Autosize" at the end of each line. This should format the output nicely.
Yes it is possible without downtime to VMs. 1. Make sure your cluster is configured to use swap datastore specified by host 2. Take a host in the cluster to maintenance mode, change the VM sw... See more...
Yes it is possible without downtime to VMs. 1. Make sure your cluster is configured to use swap datastore specified by host 2. Take a host in the cluster to maintenance mode, change the VM swapfile location setting to point to new datastore 3. Do this for all the hosts in the cluster When you vMotion a VM from one host to another the swap file will get moved to new datastore. Eventually when you take all the hosts to maintenance mode and release back, vMotion occurs for every VM in the cluster and swap file gets moved.
May be the script is failing because of PowerCLI snapin not loaded. Try adding the below line to your script (add it as first line) and check if that works. Add-PSsnapin VMware.VimAutomation.C... See more...
May be the script is failing because of PowerCLI snapin not loaded. Try adding the below line to your script (add it as first line) and check if that works. Add-PSsnapin VMware.VimAutomation.Core
Hi Glenn, Here you go.. connect-viserver VC #Enter which cluster the locked file is within $cluster = Read-Host "Enter Cluster" #Enter MAC Address of host $mac = Read-Host "Enter des... See more...
Hi Glenn, Here you go.. connect-viserver VC #Enter which cluster the locked file is within $cluster = Read-Host "Enter Cluster" #Enter MAC Address of host $mac = Read-Host "Enter desired MAC (AABBCCXXYYZZ format)" $mac = $mac.insert(2,":") $mac = $mac.insert(5,":") $mac = $mac.insert(8,":") $mac = $mac.insert(11,":") $mac = $mac.insert(14,":") get-cluster $cluster | get-vmhost | Get-VMHostNetworkAdapter | where {$_.Mac -match "$MAC" } | select-object VMHost, Name, MAC, IP, BitRatePerSec | ft -autosize disconnect-viserver VC -confirm:$false Note that I changed the numbers in insert function so that it places ':' in the right place. Give a try and post how it goes.