As you can see from the documentation Client Protocols Properties (Order Tab)
Client Protocols Properties (Order Tab)
Use the Orderpage on the Client Protocols Properties dialog box to
view and enable the client protocols.
Click a protocol, and then click Enable or Disable to move the
selected protocol to the Disabled Protocols or Enabled Protocols list.
Protocols are tried in the order listed, attempting to connect using
the top protocol first, and then the second listed protocol, etc. Move
protocols up or down the Enabled Protocols list, by clicking the up
arrow and down arrow buttons. When connecting to Microsoft SQL Server
from a client on that computer, the Shared Memory protocol will always
be tried first, if enabled.
Note These settings are not used by Microsoft .NET SqlClient. The
protocol order for .NET SqlClient is first TCP, and then named pipes,
which cannot be changed.
protocols are tried in the order listed, and those in my picture is the default order, I mean, if noone changed the configuration, named pipes is the last:

I think your problem is not named pipes, but the wrong instance name / SQL Server Browser that is not running. When all the protocols were tried without success, the last one reports the error, so if your error says
"server was not found" (named pipes)
this means that all the protocols were tried but named pipes was the last.