Posted on 05-11-2023 11:07 AM
I am trying to add JAMF script variables to my script, the scripts function is to check user home folders and if it had not been modified in an X amount of days it will delete the folder. I want to be able to change the amount of days depending on the deployment location. Would I simply just need to add $4 to the area where the variable would be input?
Solved! Go to Solution.
05-11-2023 11:14 AM - edited 05-11-2023 11:17 AM
yes.. $4 will be the value you set. note script runs as root. 'sudo' rm not needed..
make sure you tag this in the script Parameter Labels, then it will be shown in the script variables in the policy
05-11-2023 11:14 AM - edited 05-11-2023 11:17 AM
yes.. $4 will be the value you set. note script runs as root. 'sudo' rm not needed..
make sure you tag this in the script Parameter Labels, then it will be shown in the script variables in the policy
Posted on 05-11-2023 11:22 AM
Awesome, thank you.