Sony BMG Music Entertainment will pay $4.25 million as part of a settlement with 39 states including Michigan to resolve investigations into problems caused by music CDs loaded with hidden anti-piracy software.

Under terms of Thursday’s agreement, which also applies to the District of Columbia, the record company will reimburse consumers whose computers were damaged while trying to uninstall the anti-piracy software.