Maintenance plays a crucial role in the availability of an asset. In particular, when a company’s assets are decentralized, logistical aspects directly impact maintenance management and, consequently, productivity. In the energy generation sector, this scenario is common in enterprises and projects in which distributed energy resources (DERs), such as small hydroelectric power plants (SHPPs), are considered. Hence, the objective of this work is to propose an application of generalized stochastic Petri nets (GSPN) for the planning and optimization of the maintenance logistics of a DER enterprise with two SHPPs. In the presented case study, different scenarios are modeled considering logistical aspects related to the availability of spare parts and the sharing of maintenance teams between plants. From the financial return resulting from the estimated energy generation and the operating cost of each simulated scenario, the most profitable one can be estimated. The results demonstrate the ability of GSPNs to estimate the influence of the number of spare parts and maintenance teams on the availability of DERs, allowing the optimization of costs related to maintenance logistics.