The main objective of this research is to propose an active and reactive power injection control in order to mitigate voltage sags. The proposed control strategy works in conjunction with a modified version of an automatic voltage regulator (AVR), where it will act on the active and reactive powers injected by the inverter to reduce the effects of voltage sags. In this way, the control will avoid possible shutdowns and damage to the equipment connected to the grid. The voltage improvement can be perceived for consumers connected to the power system. Modifications in AVR model and parameters are performed to speed up its performance, thus identifying the short-duration voltage variations (SDVV) and, consequently, the control acts to alter the powers, decreasing the active power injection and increasing the reactive power based on inverter capacity during the momentary voltage dip (MVD). Finally, when the fault is cleared, all values return to the pre-fault condition, so that the inverter only operates with active power. A 75 kW three-phase grid-connected photovoltaic system (GCPVS) equipped with the proposed control was inserted in a distribution grid of the city of Palmas, state of Tocantins, Brazil, and all of the computer simulations were performed on the Matlab/Simulink®.