A drug addict who was arrested on charges of burglarizing Kirsten Dunst's New York City hotel penthouse suite has been sentenced to 4 1/2 years in prison.

Jarrod Beinerman was arrested on burglary and larceny charges after a security camera captured his movements in Manhattan's SoHo Grand Hotel in August 2007. He was allowed to plead guilty to the lesser charge of attempted burglary.

Police say cash, cameras, an iPod, wallets and purses were stolen from Dunst's suite.

Defense lawyer Mitchell Elman says his 33-year-old client "admitted being in the hotel." He says Beinerman has been ordered to undergo drug treatment.

Elman says Beinerman faces sentencing Sept. 10 on a drug charge.