title: Setting ImmutableID for O365 users
body: <p>I'm having difficulties creating a command that generates a new GUID into the user's immutableID field.</p>
  <p>The command <code>Set-MsolUser -UserPrincipalName &quot;UPN&quot; -ImmutableID New-GUID</code> seems to just use &quot;New-GUID&quot; as the immutable ID.</p>
  <p>Ultimately I'd like to set it to all users so I was thinking something like this:</p>
  <pre><code>Get-Msoluser -All | ForEach-Object {set-msoluser -UserPrincipalName $_.UserPrincipalName -ImmutableID New-GUID}
  </code></pre>
  <p>I'm pretty sure I'm missing something that makes the New-GUID run.</p>
  <p>Reason I'm doing this is cause O365 doesn't natively have an immutableID so I figured a random GUID would work for federation.</p>
  <p>Any help is appreciated.</p>