With the rapid development of microgrids (MGs), the level of terminal intelligence is gradually improving. Although the data processing and autonomous decision-making capabilities of the terminal have been greatly improved, the likelihood of terminal information being disclosed to its adversary also increases. To solve this problem, this paper investigates the voltage restoration for energy storage systems (ESSs) in an islanded AC microgrid as the object to study the distributed privacy preserving consensus strategy for MGs, and this method can be easily extended to other research objects. Firstly, considering the effect of droop coefficients, the model of the ESSs is considered as a linear heterogeneous multiagent system (MAS) model. Furthermore, virtual node mechanism, which avoids divulging the initial condition by inserting a virtual node associated with the real node to communicate with others instead of the real node, is adopted to make the output voltage of energy storage (ES) agents exactly converge to the reference value. It should be noted that the information flow between each pair nodes is directed and only from virtual node to the real one. After that, we carry out the consensus analysis and privacy-preservation of the controlled system. Finally, the effectiveness of the proposed control scheme is validated in the MATLAB/Simulink environment.