Ryker William Schenck, 48, pleaded guilty in Marin County Superior Court last month to shooting into an inhabited dwelling, Deputy District Attorney Dori Ahana said.
The five-year prison term is part of a plea agreement, Ahana said. Misdemeanor charges of hit-and-run, vandalism and destruction of evidence were dismissed as part of the plea.
Schenck was charged with shooting into Commissioner Randolph Heubach's San Anselmo home around 6:45 p.m. on Dec. 10.
Heubach jumped into his vehicle, followed Schenck's fleeing pickup truck and managed to scribble down the truck's license plate number, San Anselmo police said.
No one in the house was injured but a bullet entered a window and lodged inside, police said.
The vehicle was last seen by Heubach in San Rafael, and police issued an all-points bulletin for the white 1999 Isuzu truck registered to Schenck.
The unoccupied truck was located later that night at a College of Marin parking lot in Kentfield, was impounded, and towed to the San Anselmo Corporation Yard for storage until a search warrant could be obtained, police said.
According to police, Schenck showed up that night at the towing company, where he spoke with a tow truck driver and learned what police said was confidential information about his truck's location.
At 7:52 a.m. the next day, Schenck allegedly broke into the locked yard and stole the truck, which was legally under the control of the San Anselmo Police Department, police said.
A second alert was issued statewide as police were searching for Schenck and his truck.
Detectives worked with other agencies and on Dec. 17, while monitoring the movements of Schenck's family as they crossed Marin County into Richmond, Schenck was taken into custody when Richmond police officers stopped a family member's vehicle.
Police later located the Isuzu in an area of Point Richmond where police believe Schenck had been staying. It was taken back into custody for evidence.
Alameda County Superior Court Judge Philip Sarkisian heard the case, Ahana said.