Provided are compounds which are useful for controlling microorganisms in aqueous or water-containing systems or in systems which are exposed to moisture, including at elevated temperature. The antimicrobial compounds are of the formula I: wherein n, R1, R2, R3, and X are as defined herein.