Detects corporate intune registered devices not encrypted.Outputs into CSV friendly format
Devices[?intuneRegistered_r ==
true
&& accountEnabled ==
true
&& ownership_r ==
Corporate
&& isEncrypted ==
false
].deviceName | join(
,
, @)