mirror of
git://code.qt.io/qt/qt5.git
synced 2026-01-06 15:06:52 +08:00
Windows 11 21H2 will be replaced by 22H2 version Task-number: QTQAINFRA-5203 Pick-to: 6.4 Change-Id: Iad18055cf84d9c1ff38984611c820b1c23d663a2 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Matti Paaso <matti.paaso@qt.io>
14 lines
415 B
PowerShell
14 lines
415 B
PowerShell
# Disable UpdateOrchestrator
|
|
|
|
$name = "UpdateOrchestrator"
|
|
$path = "C:\Windows\System32\Tasks\Microsoft\Windows\$name"
|
|
|
|
takeown /F $path /A /R
|
|
icacls $path /grant Administrators:F /T
|
|
del "$path\Schedule Scan"
|
|
del "$path\Schedule Scan Static Task"
|
|
del "$path\USO_UxBroker"
|
|
|
|
# Disable Update orchestrator service
|
|
reg.exe ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\UsoSvc" /V Start /T REG_dWORD /D 4 /F
|