Getting OS Build with API

%3CLINGO-SUB%20id%3D%22lingo-sub-1473539%22%20slang%3D%22en-US%22%3EGetting%20OS%20Build%20with%20API%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1473539%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20there%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20want%20to%20get%20the%20Windows10%20OS%20Build%20(e.g.%2019041.329%2C%2018363.904)%20of%20all%20the%20managed%20devices.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%2C%20I%20tried%20to%20get%20DeviceInfo%20with%20the%20Advanced%20Hunting%20API%20(%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fja-jp%2Fwindows%2Fsecurity%2Fthreat-protection%2Fmicrosoft-defender-atp%2Fadvanced-hunting-deviceinfo-table%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fja-jp%2Fwindows%2Fsecurity%2Fthreat-protection%2Fmicrosoft-defender-atp%2Fadvanced-hunting-deviceinfo-table%3C%2FA%3E)%20but%20OSVersion%20fields%20were%20blank.%3C%2FP%3E%3CP%3EMeanwhile%2C%20OSVersion%20fields%20were%20filled%20(e.g.%2010.0.18363.836...)%20in%20case%20of%20DeviceTvmSoftwareInventoryVulnerabilities%20(%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fja-jp%2Fwindows%2Fsecurity%2Fthreat-protection%2Fmicrosoft-defender-atp%2Fadvanced-hunting-devicetvmsoftwareinventoryvulnerabilities-table%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fja-jp%2Fwindows%2Fsecurity%2Fthreat-protection%2Fmicrosoft-defender-atp%2Fadvanced-hunting-devicetvmsoftwareinventoryvulnerabilities-table%3C%2FA%3E).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20anyone%20tell%20me%20how%20to%20get%20the%20OS%20Build%20of%20the%20devices%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance%20for%20your%20help.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Hi there,

 

I want to get the Windows10 OS Build (e.g. 19041.329, 18363.904) of all the managed devices.

 

So, I tried to get DeviceInfo with the Advanced Hunting API (https://docs.microsoft.com/ja-jp/windows/security/threat-protection/microsoft-defender-atp/advanced-...) but OSVersion fields were blank.

Meanwhile, OSVersion fields were filled (e.g. 10.0.18363.836...) in case of DeviceTvmSoftwareInventoryVulnerabilities (https://docs.microsoft.com/ja-jp/windows/security/threat-protection/microsoft-defender-atp/advanced-...).

 

Can anyone tell me how to get the OS Build of the devices?

 

Thanks in advance for your help.

0 Replies