A former Sumner County Schools custodian has been sentenced to 62 years in prison for attempting to sexually exploit a student.