Try this. Run this Powershell script and capture the output into a text file. It will generate the net.exe commands to define groups and add users to them. Edit the txt file and remove groups like Administrators, Guests, Users, etc. Update the group comments and cleanup any users that you don't want. Save it as a .bat file on the target server so that you can run it there.
Test it using one group before you run the entire bat file. Make sure it does what you want it to do. 19512-generategroupsps1.txt
Note: the web site was not letting me post the script as code. It would not let me post it as plain text either. I had attach it as a txt file.