# turn named pipes protocol on on default instance
#

$m = new-object ($smo + 'WMI.ManagedComputer') .
$np = $m.getsmoobject("ManagedComputer[@Name='ZMV17']/ServerInstance[@Name='MSSQLSERVER']/ServerProtocol[@Name='Np']")
$np.IsEnabled = $true
$np.alter()
$np