standardize console message punctuation and capitalization (#4680)

This commit is contained in:
Paweł Gwozdowski
2026-06-22 14:17:23 -05:00
committed by GitHub
parent edca5207ec
commit aefbf1a847
7 changed files with 17 additions and 17 deletions
@@ -1,12 +1,12 @@
function Invoke-WinUtilInstallPSProfile { function Invoke-WinUtilInstallPSProfile {
if (-not (Get-Command wt)) { if (-not (Get-Command wt)) {
Write-Host "Windows Terminal not found installing..." Write-Host "Windows Terminal not found. Installing..."
Install-WinUtilWinget Install-WinUtilWinget
winget install Microsoft.WindowsTerminal --source winget --silent winget install Microsoft.WindowsTerminal --source winget --silent
} }
if (-not (Get-Command pwsh)) { if (-not (Get-Command pwsh)) {
Write-Host "Powershell 7 not found installing..." Write-Host "PowerShell 7 not found. Installing..."
Install-WinUtilWinget Install-WinUtilWinget
winget install Microsoft.PowerShell --source winget --silent winget install Microsoft.PowerShell --source winget --silent
} }
@@ -6,7 +6,7 @@ function Invoke-WinUtilSSHServer {
# Install the OpenSSH Server feature if not already installed # Install the OpenSSH Server feature if not already installed
if ((Get-WindowsCapability -Name OpenSSH.Server -Online).State -ne "Installed") { if ((Get-WindowsCapability -Name OpenSSH.Server -Online).State -ne "Installed") {
Write-Host "Enabling OpenSSH Server... This will take a long time" Write-Host "Enabling OpenSSH Server... This will take a long time."
Add-WindowsCapability -Name OpenSSH.Server -Online Add-WindowsCapability -Name OpenSSH.Server -Online
} }
+1 -1
View File
@@ -1,5 +1,5 @@
function Invoke-WPFFixesNetwork { function Invoke-WPFFixesNetwork {
netsh winsock reset netsh winsock reset
netsh int ip reset netsh int ip reset
Write-Host "Network Configuration has been Reset Please restart your computer." Write-Host "Network Configuration has been Reset. Please restart your computer."
} }
+1 -1
View File
@@ -7,6 +7,6 @@ function Invoke-WPFOOSU {
$ProgressPreference = 'Continue' $ProgressPreference = 'Continue'
} catch { } catch {
Write-Error "Couldn't download O&O ShutUp10. Please make sure you have an active internet connection." Write-Error "Couldn't download O&O ShutUp10. Please make sure you have an active Internet connection."
} }
} }
@@ -16,22 +16,22 @@ function Invoke-WPFUpdatesdefault {
Remove-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Recurse -Force Remove-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Recurse -Force
Remove-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Recurse -Force Remove-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Recurse -Force
Write-Host "Showing Windows Updates in settings" Write-Host "Showing Windows Updates in settings..."
Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer -Name SettingsPageVisibility Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer -Name SettingsPageVisibility
Write-Host "Reenabling Windows Update Services..." -ForegroundColor Green Write-Host "Reenabling Windows Update Services..." -ForegroundColor Green
Write-Host "Restored BITS to Manual" Write-Host "Restored BITS to Manual."
Set-Service -Name BITS -StartupType Manual Set-Service -Name BITS -StartupType Manual
Write-Host "Restored wuauserv to Manual" Write-Host "Restored wuauserv to Manual."
Set-Service -Name wuauserv -StartupType Manual Set-Service -Name wuauserv -StartupType Manual
Write-Host "Restored UsoSvc to Automatic" Write-Host "Restored UsoSvc to Automatic."
Start-Service -Name UsoSvc Start-Service -Name UsoSvc
Set-Service -Name UsoSvc -StartupType Automatic Set-Service -Name UsoSvc -StartupType Automatic
Write-Host "Restored WaaSMedicSvc to Manual" Write-Host "Restored WaaSMedicSvc to Manual."
Set-Service -Name WaaSMedicSvc -StartupType Manual Set-Service -Name WaaSMedicSvc -StartupType Manual
Write-Host "Enabling update related scheduled tasks..." -ForegroundColor Green Write-Host "Enabling update related scheduled tasks..." -ForegroundColor Green
@@ -48,7 +48,7 @@ function Invoke-WPFUpdatesdefault {
Get-ScheduledTask -TaskPath $Task | Enable-ScheduledTask -ErrorAction SilentlyContinue Get-ScheduledTask -TaskPath $Task | Enable-ScheduledTask -ErrorAction SilentlyContinue
} }
Write-Host "Windows Local Policies Reset to Default" Write-Host "Windows Local Policies Reset to Default."
secedit /configure /cfg "$Env:SystemRoot\inf\defltbase.inf" /db defltbase.sdb secedit /configure /cfg "$Env:SystemRoot\inf\defltbase.inf" /db defltbase.sdb
Write-Host "===================================================" -ForegroundColor Green Write-Host "===================================================" -ForegroundColor Green
@@ -19,21 +19,21 @@ function Invoke-WPFUpdatesdisable {
New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" -Force New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" -Force
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" -Name "DODownloadMode" -Type DWord -Value 0 Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" -Name "DODownloadMode" -Type DWord -Value 0
Write-Host "Hiding Windows Updates from settings" Write-Host "Hiding Windows Updates from settings..."
Set-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer -Name SettingsPageVisibility -Value hide:windowsupdate Set-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer -Name SettingsPageVisibility -Value hide:windowsupdate
Write-Host "Disabled BITS Service" Write-Host "Disabled BITS Service."
Set-Service -Name BITS -StartupType Disabled Set-Service -Name BITS -StartupType Disabled
Write-Host "Disabled wuauserv Service" Write-Host "Disabled wuauserv Service."
Set-Service -Name wuauserv -StartupType Disabled Set-Service -Name wuauserv -StartupType Disabled
Write-Host "Disabled UsoSvc Service" Write-Host "Disabled UsoSvc Service."
Stop-Service -Name UsoSvc -Force Stop-Service -Name UsoSvc -Force
Set-Service -Name UsoSvc -StartupType Disabled Set-Service -Name UsoSvc -StartupType Disabled
Remove-Item "C:\Windows\SoftwareDistribution\*" -Recurse -Force Remove-Item "C:\Windows\SoftwareDistribution\*" -Recurse -Force
Write-Host "Cleared SoftwareDistribution folder" Write-Host "Cleared SoftwareDistribution folder."
Write-Host "Disabling update related scheduled tasks..." -ForegroundColor Yellow Write-Host "Disabling update related scheduled tasks..." -ForegroundColor Yellow
@@ -27,7 +27,7 @@ function Invoke-WPFUpdatessecurity {
New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Force New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Force
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Name "ExcludeWUDriversInQualityUpdate" -Type DWord -Value 1 Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Name "ExcludeWUDriversInQualityUpdate" -Type DWord -Value 1
Write-Host "Setting cumulative updates back by 1 year and security updates by 4 days" Write-Host "Setting cumulative updates back by 1 year and security updates by 4 days..."
New-Item -Path "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" -Force New-Item -Path "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" -Force