Powershell – Get IP or MAC addresses of Windows Multipoint Server 2012 stations

powershellwindows-multipoint-server

Is it possible to programmatically retrieve the IP or MAC address of a station assigned to a Windows MultiPoint Server 2012 host, using PowerShell or any other .NET or Windows API?

Background: I'm developing a application to help set up USB-over-Ethernet zero clients in a WMS 2012 setup, bridging the PowerShell "WmsCmdlets" module (Microsoft.WindowsServerSolutions.MultipointServer.PowerShell.Commands.Library.WmsStation) and a third-party vendor API for configuring zero client IP address, etc. So far, I do not know any means of matching up the "stations" of the WmsCmdlets with the zero client objects in the vendor's API.

Finding out the IP or MAC associated with a WMS station would do nicely, since I have this on the zero client API side. However, I haven't found any information I could use in the PowerShell WmsCmdlets module, such as Get-WmsStation which returns the following:

Id                         : 1
Name                       : <my station name>
IsAutoLogOn                : False
IsSplit                    : False
CollabId                   : 0
RemoteConnectionServerName :
VirtualMachineName         :
VirtualMachineId           :
AutoLogOnUserName          :
AutoLogOnPassword          :
DeviceTypes                : {DT_Mouse, DT_Keyboard, DT_Audio, DT_MassStorage...}
DeviceCounts               : {2, 2, 0, 0...}
ComputerName               : <my WMS host server name>
SessionId                  : 4294967295
SessionHostServer          : <my WMS host server name>

Best Answer

Take a look in the registry under HKLM\software\microsoft\windows multipoint server\stations You have what looks live a list of station Ids with the corresponding MAC address of the client as part of the stationhub path