Any example of a query to get the filevault servic...
# sql
j
Any example of a query to get the filevault service status on MacOS?
h
Copy code
SELECT d.encrypted FROM mounts m JOIN disk_encryption d ON m.device_alias = d.name WHERE m.path = '/';
Does that work?
j
Yah, thats what I am using, just facing a weird scenario where unencrypted Macs show as encrypted on that query this is fine
There is a follow up on this in the #macos channel
Thanks though!
h
Gotcha! To be honest, I was just excited to come across a question that I might be able to answer. I’m in disbelief that I was (partially) correct.
☺️ 1
j
Hahah! No worries at all, the intention is what counts. So appreciate your help!
I also thought the query I built was a disaster, thats why I throw the question here. You got it right and if in the future someone looks for a Filevault query, this will come up!
h
brb, telling my entire company
😂 1