This repository was archived by the owner on May 28, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -1166,9 +1166,7 @@ Function DisableUpdateDriver {
1166
1166
If (! (Test-Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" )) {
1167
1167
New-Item - Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" - Force | Out-Null
1168
1168
}
1169
- Set-ItemProperty - Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" - Name " DontPromptForWindowsUpdate" - Type DWord - Value 1
1170
- Set-ItemProperty - Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" - Name " DontSearchWindowsUpdate" - Type DWord - Value 1
1171
- Set-ItemProperty - Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" - Name " DriverUpdateWizardWuSearchEnabled" - Type DWord - Value 0
1169
+ Set-ItemProperty - Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" - Name " SearchOrderConfig" - Type DWord - Value 0
1172
1170
If (! (Test-Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" )) {
1173
1171
New-Item - Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" | Out-Null
1174
1172
}
@@ -1179,9 +1177,7 @@ Function DisableUpdateDriver {
1179
1177
Function EnableUpdateDriver {
1180
1178
Write-Output " Enabling driver offering through Windows Update..."
1181
1179
Remove-ItemProperty - Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\Device Metadata" - Name " PreventDeviceMetadataFromNetwork" - ErrorAction SilentlyContinue
1182
- Remove-ItemProperty - Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" - Name " DontPromptForWindowsUpdate" - ErrorAction SilentlyContinue
1183
- Remove-ItemProperty - Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" - Name " DontSearchWindowsUpdate" - ErrorAction SilentlyContinue
1184
- Remove-ItemProperty - Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" - Name " DriverUpdateWizardWuSearchEnabled" - ErrorAction SilentlyContinue
1180
+ Remove-ItemProperty - Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" - Name " SearchOrderConfig" - ErrorAction SilentlyContinue
1185
1181
Remove-ItemProperty - Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" - Name " ExcludeWUDriversInQualityUpdate" - ErrorAction SilentlyContinue
1186
1182
}
1187
1183
You can’t perform that action at this time.
0 commit comments