In this study a complete characterization of the thermomechanical and shape-memory properties of epoxy shape-memory polymers modified with hyperbranched polymer and aliphatic diamine was performed. Focusing on the mechanical properties that are highly desirable for shape-memory polymers, tensile behavior until break was analyzed at different temperatures and microhardness and impact strength were determined at room temperature. As regards shape memory performance, the materials were fully characterized at different programming temperatures to study how this influenced the recovery ratio, fixity ratio, shape-recovery velocity, and switching temperature. Tensile testing revealed a peak in deformability and in the stored energy density at the onset of the glass transition temperature, demonstrating that this is the best programming temperature for obtaining the best shape-memory performances. The Young's moduli revealed more rigid structures in formulations with higher hyperbranched polymer content, while microhardness showed higher values with increasing hyperbranched polymer content due to the increased crosslinking density. Impact strength was greatly improved as the aliphatic diamine content increases due to the energy dissipation capability of its flexible structure. As regards the shape-memory properties, increasing the programming temperature has a minor effect on formulations with a lower hyperbranched polymer content and worsens these properties when the hyperbranched polymer content is increased. V C 2016Wiley Periodicals, Inc. J. Appl. Polym. Sci. 2017, 134, 44623.