How to handle repetitive tasksSolved

Participant
Discussion
4 weeks ago

Hey community! I recently had to set the date and time on a few macOS devices in my organization and found myself doing it individually on each device. Is there an easy way out of such tedious tasks?

Replies (4)

Marked SolutionPending Review
Participant
3 weeks ago
Marked SolutionPending Review

Hi @luuk,

I know exactly what you’re going through. Doing the same tasks over and over again can be exhausting. You can try deploying such actions through a script. It is less tedious and gets the job done in no time!

Marked SolutionPending Review
Participant
3 weeks ago
Marked SolutionPending Review

Hi @jimena! Thanks for your response. Scripting seems like a good option. Is there a specific platform for scripting, or can I just do it on TextEdit on my mac? Can someone just brief me on scripting on macs in general?

Marked SolutionPending Review
Hexnode Expert
3 weeks ago
Marked SolutionPending Review

Hi @luuk, @jimena ‘s suggestion seems like the perfect solution to your requirement. Scripting makes executing repetitive tasks easy, especially when the task has to be done across multiple devices. Although scripting can be done on TextEdit, it may not handle larger files well. For scripts that require heavy processing and to execute complex scripts effectively, platforms like VScode, BBedit and Sublime Text can be used.

Just as convenient as scripting sounds, it can also make irreversible changes that could be destructive in an organization. Here are a few things to keep in mind while deploying scripts:

  1. Ensure that the file extension is changed from .txt to the supported file formats when scripting on TextEdit.
  2. Execute scripts in sections before deploying the script as a whole. Use echo “$variable” to verify the output received for the set variable.
  3. Test the script across various versions of devices to ensure the script’s efficiency.

Hexnode’s Execute Custom Script feature assists organizations in deploying scripts across multiple devices. For scripts that have to be deployed regularly, you can schedule the scripts using Hexnode’s Scripts policy.

You can check out Hexnode’s script repository for some sample scripts and reach out for any assistance.

Best regards,
Gwen Michelle
Hexnode UEM

Marked SolutionPending Review
Participant
3 weeks ago
Marked SolutionPending Review

Thank you for your response. This clarifies most of my questions!