OS X change Admin user to Standard user with command line

Solution 1:

Just fought this battle, you can drop the dscl line and use the following;

Type the command
:

sudo dseditgroup -o edit -d UserName -t user admin 

Where UserName is their actual AD username.

Berry