Administrative discharges from the military fall into several categories:

A court-martial may also impose a bad conduct discharge or a dishonorable discharge.  If you’re facing an unfavorable discharge, an attorney can fight to improve its characterization.