diff options
author | Heikki Halmet <heikki.halmet@qt.io> | 2020-04-22 13:46:17 +0300 |
---|---|---|
committer | Tony Sarajärvi <tony.sarajarvi@qt.io> | 2020-10-02 14:12:24 +0000 |
commit | c2877e7ea91c413ae43fc4fceddc9d00ce4a50e7 (patch) | |
tree | 43ad7779d921a8515d06823cb271657cf8db586a | |
parent | b5eb36d6892387996e4ce971649a65e31d704b55 (diff) |
Provisioning: Disable unneeded services
To speed up things and release CPU we need to disable
unneeded services
Change-Id: I067ad6eb0b3b5df72edc00aa244cc1bff35c4232
Reviewed-by: Tony Sarajärvi <tony.sarajarvi@qt.io>
4 files changed, 7 insertions, 0 deletions
diff --git a/coin/provisioning/common/windows/disable-cortana.ps1 b/coin/provisioning/common/windows/disable-cortana.ps1 new file mode 100644 index 00000000..76b1a317 --- /dev/null +++ b/coin/provisioning/common/windows/disable-cortana.ps1 @@ -0,0 +1,3 @@ +# Disable Microsoft's digital assistant Cortona +echo "Disabling Cortona" +reg.exe ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /V AllowCortana /T REG_dWORD /D 0 /F diff --git a/coin/provisioning/common/windows/disable-superfetch.ps1 b/coin/provisioning/common/windows/disable-superfetch.ps1 new file mode 100644 index 00000000..9a18de20 --- /dev/null +++ b/coin/provisioning/common/windows/disable-superfetch.ps1 @@ -0,0 +1,2 @@ +Write-Host "Disable superfetch" +reg add "HKLM\System\CurrentControlSet\Services\SysMain" /v Start /t REG_DWORD /d 4 /f diff --git a/coin/provisioning/qtci-windows-10-x86_64/02-disable-cortana.ps1 b/coin/provisioning/qtci-windows-10-x86_64/02-disable-cortana.ps1 new file mode 100644 index 00000000..a8938783 --- /dev/null +++ b/coin/provisioning/qtci-windows-10-x86_64/02-disable-cortana.ps1 @@ -0,0 +1 @@ +. "$PSScriptRoot\..\common\windows\disable-cortana.ps1" diff --git a/coin/provisioning/qtci-windows-10-x86_64/02-disable-superfetch.ps1 b/coin/provisioning/qtci-windows-10-x86_64/02-disable-superfetch.ps1 new file mode 100644 index 00000000..71ae5d3f --- /dev/null +++ b/coin/provisioning/qtci-windows-10-x86_64/02-disable-superfetch.ps1 @@ -0,0 +1 @@ +. "$PSScriptRoot\..\common\windows\disable-superfetch.ps1" |