James Jimenez was convicted of burglary in June. He was sentenced Tuesday.
A jury had found him guilty of stealing Dunst's $2,000 designer purse. Actor Simon Pegg's cell phone and other items also were taken from the chic hotel in 2007.
The actors were staying at the hotel while filming "How to Lose Friends & Alienate People."
Prosecutors had argued that Jimenez deserved seven years behind bars.
He denied any wrongdoing.