The possibility of dynamically shaping mega-ampere electron currents generated in solids by ultraintense laser pulses in various conductor materials has been investigated. By tuning the target ionization dynamics, which depends both on the target material properties and on the input electron beam characteristics, we can control the growth of resistive magnetic fields that feedback on the current transport. As a result, collimation, hollowing, or filamentation of the electron beam can all be obtained. These results are beneficial for applications such as the production of secondary particles and radiation sources and fast ignition of inertial confinement fusion.