Get-ActiveSyncDevice

Copper Contributor

How can I list someone's mobile devices in AAD? I connected to Exchange Online and AzureAD tried running 'Get-ActiveSyncDevice' but getting:

 

someread87_0-1688333833539.png

 

1 Reply

@someread87 

 

My guess is that you've logged in with an account whose role memberships don't permit you to see the Get-ActiveSyncDevice command.

 

Only the commands you have the permission to run are imported.

 

You can use Get-ManagementRole to see which roles allow access to the command (an example is below), after which you'd need to confirm if the account you signed in with is a member of any of these roles.

 

LainRobertson_0-1688380172825.png

 

Note: It's recommended to use Get-MobileDevice these days, though that doesn't change anything I've mentioned above:

 

 

Cheers,

Lain