Forum Discussion

4 Replies

  • JutManGraham's avatar
    JutManGraham
    Brass Contributor

    Truls_Paulsen 

    (device.deviceOSVersion -notIn ["17.0.3","16.7.1","17.1.1","17.1.2","17.2.1"]) 

    This is the ONLY way I was able to get it to work.  The version is a text string so yeah, no greater than or less than can be used.

    Provide the list of OS versions you want -In or do not want -notIn.

  • Andrew_Beard's avatar
    Andrew_Beard
    Copper Contributor

    Truls_Paulsen 

    I am using the simple OS Version instead of build number and a filter to control assignments of settings or apps that only exist on certain OS versions - does that help anyone at all?
    https://learn.microsoft.com/en-us/mem/intune/fundamentals/filters-device-properties

    Tenant Administration > Filters > Create Device Filter > Android Enterprise

    Android-Devices-Phones-Version-9
    (device.osVersion -startsWith "9")

    Android-Devices-Phones-Version-10
    (device.osVersion -startsWith "10")

    Android-Devices-Phones-Version-11
    (device.osVersion -startsWith "11")

    Android-Devices-Phones-Version-12
    (device.osVersion -startsWith "12")

Resources