Last active
August 10, 2024 09:40
-
-
Save win2000b/7189a826edceba50aacd735ce791797e to your computer and use it in GitHub Desktop.
Find List of Devices Hybrid Azure AD Joined
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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