Transcranial magnetic stimulation (TMS)–evoked electroencephalography (EEG) potentials (TEPs) provide unique insights into cortical excitability and connectivity. However, confounding EEG signals from auditory and somatosensory co-stimulation complicate TEP interpretation. Our optimized sham procedure established with TMS of primary motor cortex (Gordon in JAMA 245:118708, 2021) differentiates direct cortical EEG responses to TMS from those caused by peripheral sensory inputs. Using this approach, this study aimed to investigate TEPs and their test–retest reliability when targeting regions outside the primary motor cortex, specifically the left angular gyrus, supplementary motor area, and medial prefrontal cortex. We conducted three identical TMS–EEG sessions one week apart involving 24 healthy participants. In each session, we targeted the three areas separately using a figure-of-eight TMS coil for active TMS, while a second coil away from the head produced auditory input for sham TMS. Masking noise and electric scalp stimulation were applied in both conditions to achieve matched EEG responses to peripheral sensory inputs. High test–retest reliability was observed in both conditions. However, reliability declined for the ‘cleaned’ TEPs, resulting from the subtraction of evoked EEG response to the sham TMS from those to the active, particularly for latencies > 100 ms following the TMS pulse. Significant EEG differences were found between active and sham TMS at latencies < 90 ms for all targeted areas, exhibiting distinct spatiotemporal characteristics specific to each target. In conclusion, our optimized sham procedure effectively reveals EEG responses to direct cortical activation by TMS in brain areas outside primary motor cortex. Moreover, we demonstrate the impact of peripheral sensory inputs on test–retest reliability of TMS-EEG responses.