# turn named pipes protocol off on default instance
#

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