We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c66e96 commit 16f6815Copy full SHA for 16f6815
images/win/scripts/Installers/Finalize-VM.ps1
@@ -89,6 +89,9 @@ $regUserServicesToDisables | ForEach-Object {
89
} | Out-Null
90
91
92
+Write-Host 'Disable Windows Update Service'
93
+Set-ItemProperty -Path HKLM:\System\CurrentControlSet\Services\wuauserv -Name Start -Value 4 -Force
94
+
95
# Disabled services
96
$servicesToDisable = @(
97
'wuauserv'
@@ -102,6 +105,7 @@ $servicesToDisable = @(
102
105
)
103
106
104
107
$servicesToDisable | ForEach-Object {
108
+ Stop-Service -Name $_
109
Set-Service -Name $_ -StartupType Disabled -ErrorAction Ignore
110
111
0 commit comments