Category filter

Script to remotely Create User Accounts on macOS devices

Manually creating user accounts on all of your employee devices can be time-consuming, especially if you are an administrator for a large workforce. However, device admins can remotely create admin accounts on their corporate devices with Hexnode’s custom scripting feature.

Scripting Language – Bash

File extension – .sh


The Sample Scripts provided below are adapted from third-party Open-Source sites.

Create an Admin User account

Create a Standard User account

The administrator can provide the username and password of the new account against the USERNAME and PASSWORD fields respective. The display name and password hint of the new account can be specified against the FULLNAME and PASSWORDHINT fields.


  • It is recommended to manually validate the script execution on a system before executing the action in bulk.
  • Hexnode will not be responsible for any damage/loss to the system on the behavior of the script.

  • Sample Script Repository