Check FileVault Status on macOS
Checks whether FileVault disk encryption is on. Exits with an error if it is off.
- Windows18
- macOS5
- Linux5
- Network3
- Disk and storage4
- Inventory4
- Security9
- Updates4
- Maintenance4
Script
#!/bin/bash
status=$(fdesetup status)
echo "$status"
case "$status" in
*"FileVault is On"*) exit 0 ;;
*) exit 1 ;;
esacRun it on every device with Moftgate
- 01
Add the script
In the Moftgate console, open Scripts > New script and paste the code.
- 02
Select the OS
Select macOS as the target operating system.
- 03
Test it
Run it on one test device first and read the output.
- 04
Roll out
Send it to all targets by group, profile or tag. Each device result is recorded separately.
These may help too
Check Gatekeeper and SIP on macOS
Shows whether Gatekeeper app assessment and System Integrity Protection (SIP) are on.
Windows · PowerShellCheck BitLocker Encryption Status
Shows BitLocker protection status, encryption percent and method for each volume. Exits with an error if the system drive is not encrypted.
Windows · PowerShellCheck Microsoft Defender Status
Shows whether real-time protection is on, the signature version and the signature age. Warns when signatures are older than 3 days.
Manage scripts from one console
Target selection, a confirmation step, per-device output and an audit log. The first 200 endpoints are free for a year.