You are on page 1of 1

get-msoluser -all | where immutableid -eq $null

Get a list of all cloud only accounts

get-msoluser -all | where immutableid -eq $null |fl


Get all cloud only accounts with all values

get-msoluser -all | where immutableid -ne $null


Get all synced on-premise accounts (e.g. DirSync, Azure AD
Connect, ADFS)

get-msoluser -all | where immutableid -eq $null |measure


Show a count of how many cloud only accounts
get-msoluser -all | where immutableid -eq $null | export-csv
cloudusers.csv

Run the following Command(s):

For a Delta Sync (most common, and used for most situations):

Start-ADSyncSyncCycle -PolicyType Delta

For a Full Sync (only necessary in some situations):

Start-ADSyncSyncCycle -PolicyType Initial

You might also like