Skip to main content
Question

List FileVault 2 Enabled users

  • March 29, 2020
  • 4 replies
  • 42 views

Forum|alt.badge.img+8

Hello...

I thought this would be easy but I'm struggling.

I need to create a report that contains all "FileVault 2 Enabled Users" per machine that is rolled into Jamf.

I can click on an individual machine and check it manually per machine at the disc encryption section, but I can't figure out to have this automated into a report via an Inventory search/Smart Group.

Anyone?

4 replies

donmontalvo
Forum|alt.badge.img+36
  • Hall of Fame
  • 4293 replies
  • March 29, 2020

Would an EA help...even if Jamf Pro has issues with carriage returns?

#!/bin/bash

STATUS=$(fdesetup status)
LIST=$(fdesetup list | cut -f1 -d",")

if [[ $STATUS = "FileVault is on." ]]
then
    echo "<result>"$LIST"</result>"
else
    echo "<result>"$STATUS"</result>"
fi

The report would just need to include the EA data.


Forum|alt.badge.img+13
  • New Contributor
  • 4 replies
  • October 5, 2020

How do we setup the EA to list the users with this?

The output we are currently seeing FileVault 2 users:
FileVault is On. FileVault master keychain appears to be installed.


Forum|alt.badge.img+13
  • New Contributor
  • 4 replies
  • October 6, 2020

Can you also recommend a way we could modify this to list non FV2 users?


JevermannNG
Forum|alt.badge.img+8
  • Valued Contributor
  • 136 replies
  • September 28, 2022

There is a ";" missing in the original post, this one works for me:

#!/bin/bash

STATUS=$(fdesetup status)
LIST=$(fdesetup list | cut -f1 -d",")

if [ "$STATUS" = "FileVault is On." ];
then
echo "<result>"$LIST"</result>"
else
echo "<result>"$STATUS"</result>"
fi