A 45-year-old man was sentenced Tuesday to 15 years in prison for robbing victims at several District ATMs over the course of a month, authorities said.

John Woodland, who has no fixed address, pleaded guilty to five counts of robbery and four counts of attempted robbery in D.C. Superior Court in March.

The crimes occurred from April 20, 2010, to May 19, 2010, authorities said.

Sometimes threatening victims with a knife, Woodland took their ATM cards and withdrew hundreds of dollars in cash, authorities said. On May 19, plainclothes Secret Service agents arrested him as he tried to rob a woman in the 800 block of 17th Street NW.

Woodland also admitted to authorities that he had attempted two other ATM robberies in May 2010. In one, authorities said, the victim feigned a heart attack.