A Wyoming federal judge sentenced a Cheyenne man to nearly six years imprisonment for firearms violations on Monday, according to court records.

Joshua Miller will spend five years, 10 months in prison, to be followed by three years probation and other conditions, according to the sentence handed down by Chief U.S. District Court Judge Nancy Freudenthal in Cheyenne.

On Nov. 14, he pleaded guilty to possession of a firearm by a person convicted of domestic violence and possession of a stolen firearm.

Miller was released two weeks before the guilty plea pending his sentencing. But he apparently violated the terms of his probation and a warrant for his arrest was issued on Dec. 7.

Two weeks ago, the U.S. Marshals Service announced a multi-agency task force search for Miller, and said he had a history of violence including assault, domestic violence and interference with a peace officer.

Miller turned himself in on Jan. 17, according to the Marshals Service.

A probation revocation hearing was set for Monday, which was moot because of the sentencing hearing.

The case started Nov. 15, 2015, when an agent with the U.S. Bureau of Alcohol, Tobacco, Firearms and Explosives learned Miller was selling firearms. Miller was prohibited from having firearms because of a domestic violence conviction, according to an affidavit the BATFE agent filed with the court.

A few days later, an informant told the agent he had stolen firearms and sold them to Miller, who then sold them to the Sons of Silence Motorcycle Club in Cheyenne. Miller also traded heroin and methamphetamine for firearms. Miller also offered a grenade for sale to the informant, according to the affidavit.

In December 2015, BATFE agents conducted surveillance of Miller selling firearms at his residence including a sale to a confidential informant.

In September and October 2016, agents learned Miller was trying to sell a stolen shotgun.

The Wyoming U.S. Attorney's Office filed the charges against him on Oct. 21.

More From KGAB