Need a script to check for policies in JSS at startup

JNGoecks
New Contributor

Hello! I'm new to the JAMF world and am trying to create a policy that will encrypt a machine with FileVault at startup, but I need a script that will check for JSS policies at startup. I'm new to scripting as well, so any help would be greatly appreciated!

2 REPLIES 2

ShaunRMiller83
Contributor III

You can create a policy set your triggered by to login, and set your execution frequency. Then add sudo jamf policy under advanced in the run command text field

Matt
Valued Contributor

You can do this a few ways.

Smart Group all people who do NOT have File Vault Encryption and then set a policy to Encrypt at next login, etc.

Second is you could write a script that checks for file vault encryption and then encrypts if none is found.