mirror of
git://code.qt.io/qt/qt5.git
synced 2026-01-04 22:17:45 +08:00
Our CI does not need some mDNS multicast services by Windows and they are spammed by Windows VMs in network with mdns.mcast.net requests. Pick-to: 6.8 6.5 Task-number: QTQAINFRA-6761 Change-Id: Ie676f94b81e7281ec84d9fbbfa2fd7f1d28dfbca Reviewed-by: Tero Heikkinen <tero.heikkinen@qt.io> (cherry picked from commit066371f7cd) Reviewed-by: Jukka Jokiniva <jukka.jokiniva@qt.io> (cherry picked from commit00d2f82e35) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
28 lines
978 B
PowerShell
28 lines
978 B
PowerShell
# Copyright (C) 2025 The Qt Company Ltd.
|
|
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
|
|
|
# This script disables device discovery services related to Windows mDNS multicast
|
|
|
|
. "$PSScriptRoot\helpers.ps1"
|
|
|
|
# Miracast / Wireless Display
|
|
$regPath2 = "HKLM:\Software\Policies\Microsoft\Windows\Connect"
|
|
New-Item -Path $regPath2 -Force | Out-Null
|
|
Set-ItemProperty -Path $regPath2 -Name "DisableWirelessDisplay" -Type DWord -Value 1
|
|
|
|
# Function Discovery Resource Publication, printer/service publisher
|
|
Stop-Service -Name FDResPub
|
|
Set-Service -Name FDResPub -StartupType Disabled
|
|
|
|
# Windows Media Player Network Sharing Service
|
|
Stop-Service -Name WMPNetworkSvc -Force
|
|
Set-Service -Name WMPNetworkSvc -StartupType Disabled
|
|
|
|
# Function Discovery Provider Host
|
|
Stop-Service -Name fdPHost
|
|
Set-Service -Name fdPHost -StartupType Disabled
|
|
|
|
# Windows Connect Now
|
|
Stop-Service -Name wcncsvc
|
|
Set-Service -Name wcncsvc -StartupType Disabled
|