From d9cf18691085e5b26432572d7610732733ae56de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Gwozdowski?= Date: Tue, 9 Jun 2026 02:48:36 +0200 Subject: [PATCH] standardize console message punctuation and capitalization --- functions/private/Invoke-WinUtilInstallPSProfile.ps1 | 4 ++-- functions/private/Invoke-WinUtilSSHServer.ps1 | 2 +- functions/public/Invoke-WPFFixesNetwork.ps1 | 2 +- functions/public/Invoke-WPFOOSU.ps1 | 2 +- functions/public/Invoke-WPFUpdatesdefault.ps1 | 12 ++++++------ functions/public/Invoke-WPFUpdatesdisable.ps1 | 10 +++++----- functions/public/Invoke-WPFUpdatessecurity.ps1 | 2 +- 7 files changed, 17 insertions(+), 17 deletions(-) diff --git a/functions/private/Invoke-WinUtilInstallPSProfile.ps1 b/functions/private/Invoke-WinUtilInstallPSProfile.ps1 index c5517d210a..953591852e 100644 --- a/functions/private/Invoke-WinUtilInstallPSProfile.ps1 +++ b/functions/private/Invoke-WinUtilInstallPSProfile.ps1 @@ -1,12 +1,12 @@ function Invoke-WinUtilInstallPSProfile { if (-not (Get-Command wt)) { - Write-Host "Windows Terminal not found installing..." + Write-Host "Windows Terminal not found. Installing..." Install-WinUtilWinget winget install Microsoft.WindowsTerminal --source winget --silent } if (-not (Get-Command pwsh)) { - Write-Host "Powershell 7 not found installing..." + Write-Host "PowerShell 7 not found. Installing..." Install-WinUtilWinget winget install Microsoft.PowerShell --source winget --silent } diff --git a/functions/private/Invoke-WinUtilSSHServer.ps1 b/functions/private/Invoke-WinUtilSSHServer.ps1 index 08903f6c59..a5a964fc39 100644 --- a/functions/private/Invoke-WinUtilSSHServer.ps1 +++ b/functions/private/Invoke-WinUtilSSHServer.ps1 @@ -6,7 +6,7 @@ function Invoke-WinUtilSSHServer { # Install the OpenSSH Server feature if not already 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 } diff --git a/functions/public/Invoke-WPFFixesNetwork.ps1 b/functions/public/Invoke-WPFFixesNetwork.ps1 index f409130b1f..52781a09d6 100644 --- a/functions/public/Invoke-WPFFixesNetwork.ps1 +++ b/functions/public/Invoke-WPFFixesNetwork.ps1 @@ -1,5 +1,5 @@ function Invoke-WPFFixesNetwork { netsh winsock 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." } diff --git a/functions/public/Invoke-WPFOOSU.ps1 b/functions/public/Invoke-WPFOOSU.ps1 index f81c9947fb..d9bcc0bd8a 100644 --- a/functions/public/Invoke-WPFOOSU.ps1 +++ b/functions/public/Invoke-WPFOOSU.ps1 @@ -7,6 +7,6 @@ function Invoke-WPFOOSU { $ProgressPreference = 'Continue' } 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." } } diff --git a/functions/public/Invoke-WPFUpdatesdefault.ps1 b/functions/public/Invoke-WPFUpdatesdefault.ps1 index ad71ec243f..7e280c32ec 100644 --- a/functions/public/Invoke-WPFUpdatesdefault.ps1 +++ b/functions/public/Invoke-WPFUpdatesdefault.ps1 @@ -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\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 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 - Write-Host "Restored wuauserv to Manual" + Write-Host "Restored wuauserv to Manual." Set-Service -Name wuauserv -StartupType Manual - Write-Host "Restored UsoSvc to Automatic" + Write-Host "Restored UsoSvc to Automatic." Start-Service -Name UsoSvc Set-Service -Name UsoSvc -StartupType Automatic - Write-Host "Restored WaaSMedicSvc to Manual" + Write-Host "Restored WaaSMedicSvc to Manual." Set-Service -Name WaaSMedicSvc -StartupType Manual Write-Host "Enabling update related scheduled tasks..." -ForegroundColor Green @@ -48,7 +48,7 @@ function Invoke-WPFUpdatesdefault { 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 Write-Host "===================================================" -ForegroundColor Green diff --git a/functions/public/Invoke-WPFUpdatesdisable.ps1 b/functions/public/Invoke-WPFUpdatesdisable.ps1 index ce81aa2681..6a65f76ea1 100644 --- a/functions/public/Invoke-WPFUpdatesdisable.ps1 +++ b/functions/public/Invoke-WPFUpdatesdisable.ps1 @@ -19,21 +19,21 @@ function Invoke-WPFUpdatesdisable { 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 - 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 - Write-Host "Disabled BITS Service" + Write-Host "Disabled BITS Service." Set-Service -Name BITS -StartupType Disabled - Write-Host "Disabled wuauserv Service" + Write-Host "Disabled wuauserv Service." Set-Service -Name wuauserv -StartupType Disabled - Write-Host "Disabled UsoSvc Service" + Write-Host "Disabled UsoSvc Service." Stop-Service -Name UsoSvc -Force Set-Service -Name UsoSvc -StartupType Disabled 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 diff --git a/functions/public/Invoke-WPFUpdatessecurity.ps1 b/functions/public/Invoke-WPFUpdatessecurity.ps1 index 6306189583..97ef268809 100644 --- a/functions/public/Invoke-WPFUpdatessecurity.ps1 +++ b/functions/public/Invoke-WPFUpdatessecurity.ps1 @@ -27,7 +27,7 @@ function Invoke-WPFUpdatessecurity { 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 - 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