Disable Windows Media Player Network Sharing Service (WMPNetworkSvc) with Powershell

Windows Media Player Network Sharing Service (WMPNetworkSvc) is a service in Windows that allows media sharing between devices on the same network. While this service can be useful for sharing media files across different devices, there may be situations where you want to disable it for various reasons.Here is how disable the Windows Media Player Network Sharing Service using PowerShell:

$ServiceName=”WMPNetworkSvc”
if (Get-Service $ServiceName -ErrorAction SilentlyContinue) {
Stop-Service $ServiceName
Set-Service $ServiceName -StartupType Disabled
echo “The service $ServiceName has been disabled.”
}
else {
echo “The service $ServiceName is not installed.”
}

 

Leave a comment

Your email address will not be published. Required fields are marked *

thirteen − eight =