Hey! What’s the use case here? Would a guest account be sufficient?
If it’s a shared computer situation, why not just delete all inactive user profiles after “x” amount of days?
@TDManila Its recommended to follow @robjschroeder suggestion.
How are you running the script? Login trigger? what does the policy logs show?
Thanks.
Something like:
DAYS=$4
find /Users -type d -mtime +"$DAYS" -maxdepth 1 -not -path "/Users" -not -path "/Users/admin" -not -path "/Users/Shared" -exec rm -r "{}" \\;
Something like:
DAYS=$4
find /Users -type d -mtime +"$DAYS" -maxdepth 1 -not -path "/Users" -not -path "/Users/admin" -not -path "/Users/Shared" -exec rm -r "{}" \\;
And then just have a policy run this on a recurring check-in at whatever frequency you would like or works for you.
Hey! What’s the use case here? Would a guest account be sufficient?
If it’s a shared computer situation, why not just delete all inactive user profiles after “x” amount of days?
Hello bro! We want to implement the auto delete download files on ALL accounts regardless if it's admin. just like the "deepfreeze" thing on windows. So as long as the device restarted, the download files should be deleted.
Hello bro! We want to implement the auto delete download files on ALL accounts regardless if it's admin. just like the "deepfreeze" thing on windows. So as long as the device restarted, the download files should be deleted.
Probably looking for more of a launch daemon then that you can have run after a reboot