Microgrids use specialized inverters with islanding capability and automatic transfer switches that disconnect from the main grid during outages, allowing them to operate independently while maintaining their own frequency regulation.