Skip to content
This repository was archived by the owner on May 28, 2021. It is now read-only.

Commit 93a193d

Browse files
committed
Fix typo in SetP2PUpdateInternet
1 parent e5636b0 commit 93a193d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Win10.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ Function SetP2PUpdateInternet {
476476
New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" | Out-Null
477477
}
478478
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" -Name "DODownloadMode" -Type DWord -Value 3
479-
} ElseIf ([System.Environment]::OSVersion.Version.Build -eq 14393) {
479+
} ElseIf ([System.Environment]::OSVersion.Version.Build -le 14393) {
480480
# Method used in 1511 and 1607
481481
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeliveryOptimization" -Name "DODownloadMode" -ErrorAction SilentlyContinue
482482
} Else {

0 commit comments

Comments
 (0)