This is my end goal:
1. User plugs in USB (which will probably be a launchdaemon)
2. If not encrypted prompts user to encrypt
3. If selects Encryption, encrypt USB.
4. If not it is read only (which is set up in JAMF currently).
Will need this to be internal and not a software purchase so a script is what I am working on.
I am having issues figuring out how to encrypt the USB. Below are some articles I've read but doesn't actually show how to encrypt the USB. There are options within diskutil man page but I may be reading or doing something wrong as it does not encrypt the USB and fails.
Any assistance would be appreciated.
https://www.jamf.com/jamf-nation/discussions/8306/eject-usb-if-its-not-encrypted
https://www.jamf.com/jamf-nation/discussions/21629/restrict-external-usb-devices-but-allow-encrypted-usb-devices