title: Office 365 Powershell - WinForm get-msoldomain as string
body: <p>I'm playing with WinForms and powershell and am creating a form to create a new user on Office 365 as part of a suite of commonly used tools. For specifying email address I will have a text box for the alias then a dropdown box with available domains.
  I'm pulling a list of domains using Get-MSOLDomain
  This is my combobox form part.</p>
  
  <pre><code>$form1.Controls.Add($comboBox1)
  $cbentries = Get-MsolDomain | select name
  foreach ($en in $cbentries) { $comboBox1.Items.Add($en) }
  </code></pre>
  
  <p>The problem I'm having is that the output of the domains displays as <code>@{Name=domain.com}</code>
  How can I get this to only display the domain name not the <code>@{Name=</code> part?</p>
  
  <p>Thanks</p>