Hi all
I want to create an account within the Macbook using JAMF policy > Script.
I've searched online some info, updated it with $4, $5, etc so that it fits JAMF Pro. But when I ran it, nothing happens.
Anyone got any suggestions?
#!/bin/bash username=$4 password=$5 adminRights=$6 dscl . -create /Users/$username dscl . -create /Users/$username UserShell /bin/bash dscl . -create /Users/$username RealName $username dscl . -create /Users/$username UniqueID "999" dscl . -create /Users/$username PrimaryGroupID 20 dscl . -create /Users/$username NFSHomeDirectory /Users/$username dscl . -passwd /Users/$username $password if [ "$adminRights" = "admin" ]; then dscl . -append /Groups/admin GroupMembership $username fi