your home for end-user virtualization!

Automation

Comparing a list of files and their versions across multiple servers using Windows Powershell

I ran into a situation where I needed to make sure all of my Citrix PVS servers were patched accordingly. To do that, I needed to examine the version of various files located in the Program File’s directory. To do this, I used Windows Powershell to examine the file version information and report on it. […]

Posted in Citrix, Powershell | 1 Comment »

List Hostname, Lun Name, Lun Policy, and Path State using PowerCLI

So the other day, EMC wanted to verify that all luns on my ESX host were using the same Lun Policy as a result of an open ticket that I had with them. To do that, I decided to use the PowerCLI toolkit. This is what I came up with. $lunpathinfo = @() foreach ($vmhost […]

Posted in Powershell, vmware | No Comments »

How to find virtual machine name from the MAC address using PowerCLI

So, after the mess this week… I had an IP conflict on my vCenter test server… Luckily Server 2008 told me the MAC of the offending machine. Which just happened to have a VMware Mac :) I busted out the trusty PowerCLI and this is what I came up with! $report =@() Get-VM | Get-View […]

Posted in Powershell, vmware | 14 Comments »

Finding what portgroups are on each cluster using PowerCLI

$myCol = @() ForEach ($VMHost in (Get-VMHost | Sort Name)) { ForEach ($VM in ($VMHost | Get-VM)) { ForEach ($NIC in (Get-NetworkAdapter -VM $VM)) { $myObj = “” | Select VMHost, VM, NIC, PortGroup, vSwitch $myObj.VMHost = $VMHost.Name $myObj.VM = $VM.Name $myObj.NIC = $NIC.Name $myObj.PortGroup = Get-VirtualPortGroup -VM $VM -Name $NIC.NetworkName $myObj.vSwitch = $myObj.PortGroup.VirtualSwitchName $myCol […]

Posted in Powershell, vmware | No Comments »

Search

Categories