The present paper presents an analytical study of the one-dimensional weak shock wave problem in a perfect gas under the action of a generalized magnetic field subjected to weak shock jump conditions (R-H conditions). The magnetic field is considered axial and azimuthal in cylindrically symmetric configuration. By considering a straightforward analytical approach, an explicit solution exhibiting time-space dependency for gas-dynamical flow parameters and total energy (generated during the propagation of the weak shock from the center of the explosion) has been obtained under the significant influence of generalized magnetic fields (axial and azimuthal) and the results are analyzed graphically. From the outcome, it is worth noticing that for an increasing value of Mach number under the generalized magnetic field, the decay process of physical parameters (density, pressure, and magnetic pressure) is a bit slower, whereas the velocity profile and total energy increase rapidly with respect to time. Moreover, for increasing values of Shock-Cowling number the total energy grows rapidly with respect to time.