sending a control message to all midi ports and channels

Hi,

Newbie cubase user. I’ve made the mistake of clicking Midi: Reset. Apart from sending note offs ( which i needed because something was stuck ) it also sent CC #1 to my entire template which resulted in setting all Dynamics sliders in over 400 loaded Kontakt instruments to 0.

So my question is, how do i send CC #1 127 to all ports/channels ?

Also, what is the best way to send an “all note off” to all Ports/Channels ?