In this work, an enhanced technique for pulsed pumping was proposed denoted by Automated Pulsed Pumping (APP) technique. In this technique, a controlled system was suggested to detect the generation of the output pulse and control the pumping level. The technique is applied to a diode-pumped Yb:YAG laser passively Q-switched by Cr4+:YAG as saturable absorber by numerically solving the coupled rate equations describing the system. The thermal distribution, within the laser active medium of Q-switched solid-state lasers when subjected to APP, has been studied by solving the coupled laser rate equations simultaneously with the thermal conductivity equation. The thermal transient time and focal length in the cylindrical coordinates were also calculated.