Listing Virtual Machines and Portgroups

vSphere 5.0 – If you need a list of Virtual Machines and the portgroups they are attached to: Get-VM -Location “somewhere” | ft Name, @{Expression={$_.NetworkAdapters.NetworkName};Label=”Network Name”} If you need to export this to a CSV: Get-VM -Location “somewhere” | select-object Name, @{Expression={$_.NetworkAdapters.NetworkName};Label=”Network Name”} | export-csv “vm-networks.csv”

Getting a vSphere VM’s Network Adapters

Getting all the network adapters for a VM is an easy task: get-networkadapter -vm [vm name] When you remove a network adapter, vSphere will remove it’s entry in the .vmx file. In the .vmx file, the adapter configuration options are prepended by an “ethernetX” string, where X is a number between 0 and 9. Removing …

C++ Windows 8 Store Apps: The series

So I’m going to start writing my own apps – I’ve been doing C++ for a while now (15 odd years) and fancy a new project to occupy my commute each day. I’ve equipped an old laptop with a cheap SSD and Windows 8 and installed Visual Studio. The SSD really makes a difference ! …

Swapfile Datastores

If you have more than one swap file datastore for your hosts, then you might want to see which hosts are connected to what datastores. get-vmhost -location “<cluster/datacenter name>” | sort-object Name | ft Name, VMSwapfileDatastore

Quick PowerCLI #1

I may or may not make this a series 😉 PowerShell with VMware is very useful. Ignoring the Connect-VIServer and Disconnect-VIServer commands, here are some tips. Getting the Swap File Datastore for all hosts in a cluster If you store VM swap files away from the VM folder (faster disk I would hope) and have …

DHCP authorisation for subdomains

While setting up multi-forest, multi-domain environment to test an Exchange 2010 deployment I decided to do something that I hadn’t done when setting up these tests before – I implemented DHCP on one of the domains – all so I could bring up clients as required. Installing the DHCP service was as easy as usual. …

adamsync

Following on from my post about getting ADAM to work with Openfire, using adamsync to pull in information from the source domains was also an interesting experience. Adamsync uses an xml file to define what it should pull in, and what it should do with it. There are plenty of references out there to adamsync …

VMware Orchestrator workflow failing

Had an interesting issue the other week involving VMware Orchestrator. Workflows have been set up to use Configuration elements, and one of the attributes in the element was a VC:VmFolder. This would be set, but the workflow would fail, and when I went back to look at the attribute it was “not set”. This had …

ADAM / LDS

A recent project has been to configure an ADAM instance to allow Openfire (homepage) to allow users from multiple domains to connect to it. It has been interesting and at times frustrating. I wanted to sync to two domains, both in the same forest and create userProxy objects in the ADAM instance to allow for …