25,148 questions
As you have two conditions for the deviceOSVersion property, you should add parenthesis around them to ensure proper processing:
(device.deviceTrustType -eq "ServerAd") -and (device.deviceOSType -eq "Windows") -and (device.deviceOwnership -eq "Company") -and ((device.deviceOSVersion -startsWith "10.0.1") -or (device.deviceOSVersion -startsWith "10.0.2"))