Skip to content

A script to prompt users to log out and back in to enable FileVault.

Notifications You must be signed in to change notification settings

Sdelsaz/FileVault-Logout-Prompt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FileVault Logout Prompt

This script will prompt users to logout in order to enable Filevault on computers managed by Jamf Pro.

This script uses Bart Reardon's swiftDialog for user dialogs

https://github.com/bartreardon/swiftDialog

The script will perform a few checks and ask the user to log out to enable FileVault if needed when a Configuration Profile to enforce FileVault Disk Encription and escrow the Rceovery key to Jamf Pro has been installed on their computer. The script does the following:

  • Checks if Recovery Key Escrow settings are present. If not it exits.
  • Checks if FileVault is enabled. If it is, it exits.
  • Checks if a user is logged in. If not, it exits.
  • Checks if Swift Dialog is installed. If not, it installs it.
  • Prompts the user to log out.
  • If the user selects to log out, a confirmatiuon prompt is displayed with a time out to make sure any unsaved work is saved.
  • If the User clicks on " Log Out Now" or the timeout expires, the current user is logged out.
  • Parameter $4 can be used to set the organisation name.

Screenshot 2025-04-14 at 22 51 26

Screenshot 2025-04-14 at 22 51 39

About

A script to prompt users to log out and back in to enable FileVault.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages