diff options
Diffstat (limited to 'coin/pre-provisioning/qtci-windows-11_22H2-x86_64/disable-update-orchestrator.ps1')
-rw-r--r-- | coin/pre-provisioning/qtci-windows-11_22H2-x86_64/disable-update-orchestrator.ps1 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/coin/pre-provisioning/qtci-windows-11_22H2-x86_64/disable-update-orchestrator.ps1 b/coin/pre-provisioning/qtci-windows-11_22H2-x86_64/disable-update-orchestrator.ps1 new file mode 100644 index 00000000..72473d8f --- /dev/null +++ b/coin/pre-provisioning/qtci-windows-11_22H2-x86_64/disable-update-orchestrator.ps1 @@ -0,0 +1,13 @@ +# 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 |