mirror of
git://code.qt.io/qt/qt5.git
synced 2026-03-09 22:06:13 +08:00
Provisioning: Disable Windows multicast device discoveries
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.9 6.8 6.5
Task-number: QTQAINFRA-6761
Change-Id: Ie676f94b81e7281ec84d9fbbfa2fd7f1d28dfbca
Reviewed-by: Tero Heikkinen <tero.heikkinen@qt.io>
(cherry picked from commit 066371f7cd)
Reviewed-by: Jukka Jokiniva <jukka.jokiniva@qt.io>
This commit is contained in:
27
coin/provisioning/common/windows/disable-windows-mdns.ps1
Normal file
27
coin/provisioning/common/windows/disable-windows-mdns.ps1
Normal file
@@ -0,0 +1,27 @@
|
||||
# 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
|
||||
@@ -0,0 +1,5 @@
|
||||
# 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
|
||||
|
||||
# QTQAINFRA-6761
|
||||
. "$PSScriptRoot\..\common\windows\disable-windows-mdns.ps1"
|
||||
@@ -0,0 +1,5 @@
|
||||
# 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
|
||||
|
||||
# QTQAINFRA-6761
|
||||
. "$PSScriptRoot\..\common\windows\disable-windows-mdns.ps1"
|
||||
@@ -0,0 +1,5 @@
|
||||
# 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
|
||||
|
||||
# QTQAINFRA-6761
|
||||
. "$PSScriptRoot\..\common\windows\disable-windows-mdns.ps1"
|
||||
@@ -0,0 +1,5 @@
|
||||
# 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
|
||||
|
||||
# QTQAINFRA-6761
|
||||
. "$PSScriptRoot\..\common\windows\disable-windows-mdns.ps1"
|
||||
@@ -0,0 +1,5 @@
|
||||
# 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
|
||||
|
||||
# QTQAINFRA-6761
|
||||
. "$PSScriptRoot\..\common\windows\disable-windows-mdns.ps1"
|
||||
@@ -0,0 +1,5 @@
|
||||
# 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
|
||||
|
||||
# QTQAINFRA-6761
|
||||
. "$PSScriptRoot\..\common\windows\disable-windows-mdns.ps1"
|
||||
@@ -0,0 +1,5 @@
|
||||
# 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
|
||||
|
||||
# QTQAINFRA-6761
|
||||
. "$PSScriptRoot\..\common\windows\disable-windows-mdns.ps1"
|
||||
@@ -0,0 +1,5 @@
|
||||
# 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
|
||||
|
||||
# QTQAINFRA-6761
|
||||
. "$PSScriptRoot\..\common\windows\disable-windows-mdns.ps1"
|
||||
@@ -0,0 +1,5 @@
|
||||
# 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
|
||||
|
||||
# QTQAINFRA-6761
|
||||
. "$PSScriptRoot\..\common\windows\disable-windows-mdns.ps1"
|
||||
Reference in New Issue
Block a user