Path dor DisableOSUpgrade reg key was wrong

This commit is contained in:
Yorick Barbanneau 2016-05-28 14:53:34 +02:00
parent e534a0a63e
commit 1d78c59a0a

View file

@ -193,4 +193,4 @@ remove_tasks $sheduledTasks
Write-Host -ForegroundColor white "`nUpdate Registrery to prevent Win10 automatic installation...`n------------------------------------------------------------"
add_reg_object "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\OSUpgrade" "AllowOSUpgrade" "0" "DWord"
add_reg_object "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" "DisableOSUpgrade" "1" "DWord"
add_reg_object "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" "DisableOSUpgrade" "1" "DWord"