Skip to content

Instantly share code, notes, and snippets.

@win2000b
Last active May 23, 2018 10:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save win2000b/7189a826edceba50aacd735ce791797e to your computer and use it in GitHub Desktop.
Save win2000b/7189a826edceba50aacd735ce791797e to your computer and use it in GitHub Desktop.
Find List of Devices Hybrid Azure AD Joined
# Find All Hybrid Azure AD Joined Devices
Get-msoldevice -all | Where-Object {$_.DeviceTrustType -eq "Domain Joined"} | select displayname, DeviceOSType, DeviceTrustType | Export-CSV -Path c:\temp\Devices.csv
# Find All Windows 10 Hybrid Azure AD Joined Devices
Get-msoldevice -all | Where-Object {($_.DeviceTrustType -eq "Domain Joined" -and $_.DeviceOSType -like "Windows 10*")} | select displayname, DeviceOSType, DeviceTrustType | Export-CSV -Path c:\temp\Devices.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment