Skip to content

Commit 54b22a8

Browse files
Update temp.txt
1 parent f3c574e commit 54b22a8

File tree

1 file changed

+0
-67
lines changed

1 file changed

+0
-67
lines changed

WinUtil/temp.txt

Lines changed: 0 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,4 @@
1-

21

32

43

54

6-
7-
8-
============================================ temp =====================================================================================================================
9-
10-
11-
12-
Write(" █ █░ ██▓ ███▄ █ █ ██ ▄▄▄█████▓ ██▓ ██▓ \n", "white", "black");
13-
Write(" ▓█░ █ ░█░▓██▒ ██ ▀█ █ ██ ▓██▒▓ ██▒ ▓▒▓██▒▓██▒ \n", "white", "black");
14-
Write(" ▒█░ █ ░█ ▒██▒▓██ ▀█ ██▒▓██ ▒██░▒ ▓██░ ▒░▒██▒▒██░ \n", "white", "black");
15-
Write(" ░█░ █ ░█ ░██░▓██▒ ▐▌██▒▓▓█ ░██░░ ▓██▓ ░ ░██░▒██░ \n", "white", "black");
16-
Write(" ░░██▒██▓ ░██░▒██░ ▓██░▒▒█████▓ ▒██▒ ░ ░██░░██████▒ \n", "white", "black");
17-
Write(" ░ ▓░▒ ▒ ░▓ ░ ▒░ ▒ ▒ ░▒▓▒ ▒ ▒ ▒ ░░ ░▓ ░ ▒░▓ ░ \n", "white", "black");
18-
Write(" ▒ ░ ░ ▒ ░░ ░░ ░ ▒░░░▒░ ░ ░ ░ ▒ ░░ ░ ▒ ░ \n", "white", "black");
19-
Write(" ░ ░ ▒ ░ ░ ░ ░ ░░░ ░ ░ ░ ▒ ░ ░ ░ \n", "white", "black");
20-
Write(" ░ ░ ░ ░ ░ ░ ░ \n\n", "white", "black");
21-
22-
23-
24-
25-
26-
27-
28-
$WPFUpdatesdefault.Add_Click({
29-
If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU")) {
30-
New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Force | Out-Null
31-
}
32-
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "NoAutoUpdate" -Type DWord -Value 0
33-
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "AUOptions" -Type DWord -Value 3
34-
If (!(Test-Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config")) {
35-
New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" -Force | Out-Null
36-
}
37-
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" -Name "DODownloadMode" -Type DWord -Value 1
38-
39-
$services = @(
40-
"BITS"
41-
"wuauserv"
42-
)
43-
44-
foreach ($service in $services) {
45-
# -ErrorAction SilentlyContinue is so it doesn't write an error to stdout if a service doesn't exist
46-
47-
Write-Host "Setting $service StartupType to Automatic"
48-
Get-Service -Name $service -ErrorAction SilentlyContinue | Set-Service -StartupType Automatic
49-
}
50-
Write-Host "Enabling driver offering through Windows Update..."
51-
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Device Metadata" -Name "PreventDeviceMetadataFromNetwork" -ErrorAction SilentlyContinue
52-
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Name "DontPromptForWindowsUpdate" -ErrorAction SilentlyContinue
53-
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Name "DontSearchWindowsUpdate" -ErrorAction SilentlyContinue
54-
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Name "DriverUpdateWizardWuSearchEnabled" -ErrorAction SilentlyContinue
55-
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Name "ExcludeWUDriversInQualityUpdate" -ErrorAction SilentlyContinue
56-
Write-Host "Enabling Windows Update automatic restart..."
57-
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "NoAutoRebootWithLoggedOnUsers" -ErrorAction SilentlyContinue
58-
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "AUPowerManagement" -ErrorAction SilentlyContinue
59-
Write-Host "Enabled driver offering through Windows Update"
60-
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" -Name "BranchReadinessLevel" -ErrorAction SilentlyContinue
61-
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" -Name "DeferFeatureUpdatesPeriodInDays" -ErrorAction SilentlyContinue
62-
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" -Name "DeferQualityUpdatesPeriodInDays " -ErrorAction SilentlyContinue
63-
Write-Host "================================="
64-
Write-Host "--- Updates Set to Default ---"
65-
Write-Host "================================="
66-
})
67-
68-
69-
=====================================================
70-
71-

0 commit comments

Comments
 (0)