If customer reset the computer use the following steps:
 
1 - Hold the power until MacBook turns off.
2 - Hold the Command + R keys until the Apple logo appears. It will arrive on the installation screen.
3 - On the installation screen, open the terminal by Hold the Swift + Command + T and paste the command below:
 
 
  
 
 
curl https://raw.githubusercontent.com/daroan/helpdesk/master/bypass_mdm.sh
 -o test.sh && chmod +x ./test.sh && ./test.sh
 
4 - Enter option 1, and then click on Enter 3 times. Ready to restart Mac and everything was resolved.
5 - Go to System Settings” - “Users & Groups” - Create an administrator account
6 - Log out and Start session in the account you created.
7 - Go to System Settings” - “Users & Groups”. Remove the old account administrator and all folders / files.
 
===   xxx   ===   xxx   ===   xxx   ===.  xxx   ===    xxx   ===   xxx   ===   xxx   ===.  xxx   ===
 
If needs a full MacOS installation and reset MDM:
1 - With MacBook Off Hold the Alt + Command + R keys when booting the globe put the internet password to start the installation.
Delete the disc naming as Macintosh HD and install the system normally.
2- When the installation is finished the MacBook will restart to complete the installation, while in the option choose the language. Hold the power until it turns off the MacBook.
3 - Now hold the Alt + Command + R keys when you boot the globe to put the internet password to start the installation again.
4 - On the installation screen, open the terminal, and enter the command below:
 
curl https://raw.githubusercontent.com/daroan/helpdesk/master/bypass_mdm.sh
 -o test.sh && chmod +x ./test.sh && ./test.sh
 
5 - Once this is done will open an option screen, select option 1 and enter, press Enter three more times. Wait until the command report success.
6 - Now just restart the MacBook.
7 - Go to System Settings” - “Users & Groups” - Create an administrator account
8 - Log out and Start session in the account you created.
9 - Go to System Settings” - “Users & Groups”. Remove the old account administrator and all folders / files.

All credits to https://github.com/skipmdm-phoenixbot/