This paper presents a distributed, robust, finite-time secondary control for both voltage and frequency restoration of an islanded microgrid with droop-controlled inverter-based distributed generators (DGs). The distributed cooperative secondary control is fully distributed (i.e., uses only the information of neighboring DGs that can communicate with one another through a sparse communication network). In contrast to existing distributed methods that require a detailed model of the system (such as line impedances, loads, other DG units parameters, and even the microgrid configuration, which are practically unknown), the proposed protocols are synthesized by considering the unmodeled dynamics, unknown disturbances, and uncertainties in their models. The other novel idea in this paper is that the consensus-based distributed controllers restore the islanded microgrid's voltage magnitudes and frequency to their reference values for all DGs within finite time, irrespective of parametric uncertainties, unmodeled dynamics, and disturbances, while providing accurate real-power sharing. Moreover, the proposed method considers the coupling between the frequency and voltage of the islanded microgrid. Unlike conventional distributed controllers, the proposed approach quickly reaches consensus and exhibits a more accurate robust performance. Finally, we verify the proposed control strategy's performance using the MATLAB/SimPowerSystems toolbox.