Files
qt5/coin/pre-provisioning/qtci-windows-10_21H2-x86_64/disable-update-orchestrator.ps1
Heikki Halmet c34960c8bd Add pre-provisioning files for Windows 10 21H2
Change-Id: I9e6e1423b1e287aff0be8ea2b29c95838ed10de5
Reviewed-by: Ville-Pekka Karhu <ville-pekka.karhu@qt.io>
2021-12-29 08:42:22 +02:00

15 lines
443 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\UpdateModelTask"
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