A man who troopers say stole a Vermont state police cruiser and a gun inside it will spend five years behind bars.