The order prevented the former sheriff's deputy from entering the Oxford County Sheriff's Office and the county jail.