mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2026-08-09 17:41:14 +10:00
standardize console message punctuation and capitalization (#4680)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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."
|
||||
}
|
||||
|
||||
@@ -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."
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user