Skip to main content
Solved

Create logout hook script to delete numerical user accounts only

  • May 12, 2014
  • 2 replies
  • 19 views

Forum|alt.badge.img+6

Hi everyone, we used to create a logout *.sh script to execute at user logout. This script deletes all user accounts with a number in their profile since our students all have that.

Now I'd like to implement the same in Casper and already enabled login/logout hooks. Also I created the script but I can not find where/how to attach the script to execute on a machine.

*Deleted unnecessary info*

Best answer by JPDyson

If you've already added your script to your JSS (via Casper Admin, or creating it through the Scripts view), all that remains is creating a Policy triggered by Logout that runs this script. It's "Casper 101" type stuff, but everybody starts somewhere. Have you read the section of the admin guide on policy creation?

2 replies

Forum|alt.badge.img+13
  • Valued Contributor
  • Answer
  • May 12, 2014

If you've already added your script to your JSS (via Casper Admin, or creating it through the Scripts view), all that remains is creating a Policy triggered by Logout that runs this script. It's "Casper 101" type stuff, but everybody starts somewhere. Have you read the section of the admin guide on policy creation?


Forum|alt.badge.img+6
  • Author
  • Contributor
  • May 12, 2014

Thank you for answering this fast, we just did a jumpstart and have so many options to figure out. I looked over the trigger logout hook in policy settings. This should do the trick.