Federal prosecutors say the Windham resident admitted to viewing and downloading child sexual abuse materials for more than two decades.