Study Population Participants will be recruited from all patients who are planning to undergo gynecologic surgery by an attending surgeon in the Division of Urogynecology at Duke University Medical Center (DUMC). After enrollment and randomization, the participants will take the study drug once daily to start on post-operative day one and continue until the participant has stopped catheterizing for up to one week after surgery. The participant will also complete a daily diary for one week after surgery to record any catheterization and any study drug or additional antibiotic medication taken. We will then follow patients for a total of three weeks after surgery to monitor for treatment for UTI. At three weeks after surgery the observation period for the participant is complete.