Hi All!
I created this Apple Script to look for applications and quit them if found. Currently I am running it from our directory controller, JumpCloud every 20 seconds and it seems to be working successfully. I thought I would share. Hoping to code in an email notification on violation at some point.
tell application "System Events"
set ProcessList to name of every process
if "Terminal" is in ProcessList then
set ThePID to unix id of process "Terminal"
do shell script "kill -KILL " & ThePID
display dialog "This application is restricted. Please submit a ticket if you have legitimate need for this application"
end if
end tell
Thought I would share if anyone else is looking for something similar,
Jared
Find this helpful? Click the kudos button. Thanks!