title: Trying to remove all unlicensed users from the Global address list using Powershell
body: <p>I'm trying to remove all users that are unlicensed from the global address list.</p>
  
  <p>So far, I've found that ...</p>
  
  <p><code>$mboxes = Get-MsolUser -All -UnlicensedUsersOnly</code></p>
  
  <p>... will get me all unlicensed users, and put them in a variable called <code>$mboxes</code>, however there doesn't appear to be an Identity here.</p>
  
  <p>For when I try and run something like:</p>
  
  <p><code>foreach ($mbox in $mboxes) { Set-Mailbox -HiddenFromAddressListsEnabled $true -Identity $mbox }</code></p>
  
  <p>I get back the following error.</p>
  
  <p><code>Cannot process argument transformation on parameter 'Identity'.</code></p>
  
  <p>I've tried exporting that data to a CSV and creating an "Identity" header, however I get the same issue after re-importing the data back into PowerShell.</p>