The electronic structures, magnetic properties, and martensitic transformation in all-d-metal Heusler-like alloys Cd2MnTM (TM = Fe, Ni, Cu) were investigated by the first-principles calculations based on density-functional theory. The results indicate that all three alloys are stabilized in the ferromagnetic L21-type structure. The total magnetic moments mainly come from Mn and Fe atoms for Cd2MnFe, whereas, only from Mn atoms for Cd2MnNi and Cd2MnCu. The magnetic moment at equilibrium lattice constant of Cd2MnFe (6.36 μ
B) is obviously larger than that of Cd2MnNi (3.95 μ
B) and Cd2MnCu (3.82 μ
B). The large negative energy differences (ΔE) between martensite and austenite in Cd2MnFe and Cd2MnNi under tetragonal distortion and different uniform strains indicate the possible occurrence of ferromagnetic martensitic transformation (FMMT). The minimum total energies in martensitic phase are located with the c/a ratios of 1.41 and 1.33 for Cd2MnFe and Cd2MnNi, respectively. The total moments in martensitic state still maintain large values compared with those in cubic state. The study is useful to find the new all-d-metal Heusler alloys with FMMT.