Forum Discussion
mmiadmin
Feb 22, 2023Copper Contributor
Get-AzureADDevice - Registered devices
Getting the error message when I run this command PS C:\Windows\system32> Get-AzureADDevice -all $true | Where-Object{($_.DeviceTrustType -eq"ServerAd") -and ($_.ProfileType -ne"RegisteredDevice"...
VasilMichev
Feb 23, 2023MVP
Well, do you have the AzureAD PowerShell module installed and are you connected to it via an account with sufficient privileges?
https://learn.microsoft.com/en-us/powershell/azure/active-directory/install-adv2?view=azureadps-2.0
https://learn.microsoft.com/en-us/powershell/azure/active-directory/install-adv2?view=azureadps-2.0