I have created Policy Script in Intune to get my Intune Enrolled Devices inventory using this command:
Get-IntuneManagedDevice | Out-GridView
Which gives me Manufacturer, Ram, ComputerName, CPU, SerialNumber.
It perfectly works, however it doesn't give me Capacity of RAM (Always shows 0 for all devices)
I actually know an alternative solution which is getting the output of the script by the usage of MS Graph Explorer, however I don't really like this solution for I have to use postman with it. That's why I am looking for another solution.