Path dor DisableOSUpgrade reg key was wrong
This commit is contained in:
parent
e534a0a63e
commit
1d78c59a0a
1 changed files with 1 additions and 1 deletions
|
@ -193,4 +193,4 @@ remove_tasks $sheduledTasks
|
||||||
|
|
||||||
Write-Host -ForegroundColor white "`nUpdate Registrery to prevent Win10 automatic installation...`n------------------------------------------------------------"
|
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\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"
|
||||||
|
|
Reference in a new issue