In response to climate change, governments around the world have committed to reducing greenhouse gas emissions, which contribute to global warming, through the energy transition from fossil fuels to renewable energy sources and electrification of transportation. This article outlines the design procedure for the electrification of a railway vehicle used for maintenance services on the rail network. The proposed methodology consists of the design of both an all-electric propulsion system and storage system with the aim of zero emissions when the vehicle is operating in tunnels and to minimise noise during maintenance services in cities. After highlighting the characteristics of the railway vehicle under consideration, a simulation model of the propulsion and generation system was developed in order to calculate the energy consumption of the entire railway system. Finally, experimental tests carried out on the prototype proved the effectiveness of the design procedure adopted and the proposed mathematical model, showing a good matching with the simulated results.