When you have a portable generator you will need to install a transfer switch to switch power from the utility to your generator this is a national electrical code. This law is to protect the linemen who may work on the utility wires and or to protect children and people from down power lines.