In order to achieve carbon peaking and neutrality goals, the photovoltaic integrated buildings with BIPV modules is more efficient and economical than other distributed solar energy systems. Since they are usually installed on the roofs of high buildings or big factories, BIPV modules have a high probability of being struck by lightning. In order to study the transient current and magnetic field distribution in the photovoltaic integrated buildings under lightning strike, this paper established a model of photovoltaic integrated buildings with BIPV modules in the FEM simulation platform. The simulation results show that the transient current distribution and the magnetic field distribution inside the photovoltaic integrated buildings are less and more uniform comparing to that of the common buildings without BIPV modules. Therefore, it is revealed that the building with BIPV modules will induce less threat of the lightning electromagnetic impulse to impact the sensitive electronic equipment inside the buildings.