SummaryThis article investigates the control problem for underactuated port‐controlled Hamiltonian systems with multiple linearly parameterized additive disturbances including matched, unmatched, constant, and state‐dependent components. The notion of algebraic solution of the matching equations is employed to design an extension of the interconnection and damping assignment passivity‐based control methodology that does not rely on the solution of partial differential equations. The result is a dynamic state‐feedback that includes a disturbance compensation term, where the unknown parameters are estimated adaptively. A simplified implementation of the proposed approach for underactuated mechanical systems is detailed. The effectiveness of the controller is demonstrated with numerical simulations for the magnetic‐levitated‐ball system and for the ball‐on‐beam system.