Open clickbangdead opened 4 years ago
I tried your example of
$DeviceID = <some Device's ID>
$URI = [uri]::EscapeUriString("https://graph.microsoft.com/beta/deviceManagement/manageddevices('$deviceid')?`$select=UserPrincipalName,emailAddress,deviceName,model,manufacturer,serialNumber,id,lastSyncDateTime,ethernetMacAddress&_=1576515130721")
$dev = Invoke-MSGraphRequest -url $uri -HttpMethod get
I get the error message: Parsing OData Select and Expand failed: Could not find a property named 'ethernetMacAddress' on type 'microsoft.graph.managedDevice'.
Are you sure this property exists?
I have hit this same issue today. Example:
$intuneDevices = Get-IntuneManagedDevice | Get-MSGraphAllPages
$intuneDevices[0]
Returns an object with property (see below), but I receive the same error as @clickbangdead when using the select parameter with the property included.
Possibly that the set validation needs to be updated with the new property?
Hello, I am also experiencing this issue.
hi, do we have any update of this case?
still same issue here
In December, Intune added Ethernet MAC Address as a property (finally!). It's available via hardware properties in the portal, but if I retrieve devices using:
$a = Get-IntuneManagedDevice | Get-MSGraphAllPages
I get an empty ethernetMacAddress field on all devices. I am able to get the data if i directly query via REST like so:
Then i am able to get the ethernetMacAddress property
If I do:
Get-IntuneManagedDevice -Select id,ethernetMacAddress | Get-MSGraphAllPages
I get: