Check if a user is moved to O365

How Can We Help?

You are here:
< Back

We are currently migrating to Office 365, but not all users at the same time, so we have below script to see if the user is moved.

Get-ADUser -Filter {memberof -eq "CN=GROUPNAME,OU=Exchange,DC=DOMAIN,DC=COM"} -SearchBase "DC=DOMAIN,DC=COM" -Properties targetAddress | where targetAddress -eq $null | SELECT name