If the portable generator is providing electric power to a structure by connection via a transfer switch to a structure (home, office, shop, trailer, or similar) it must be connected to a grounding electrode system, such as a driven ground rod.