INDIANAPOLIS (AP) — Pharmacy giant CVS will pay $1.95 million and verify that all of its pharmacists are licensed in Indiana to settle a state complaint that two pharmacists with expired licenses dispensed prescriptions for several years at its drugstores.

The Indiana attorney general's office announced the settlement Tuesday. Rhode Island-based CVS did not immediately respond when contacted for comment.

Investigators alleged that CVS had at different times between 1997 and 2007 employed two pharmacists whose licenses had expired at stores in Nashville and Marion. CVS brought one of the cases to state attention during the probe.

The attorney general's office says CVS has agreed to perform regular records checks to verify that all of its pharmacists have the proper licenses.