Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions functions/private/Invoke-WinUtilInstallPSProfile.ps1
Original file line number Diff line number Diff line change
@@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion functions/private/Invoke-WinUtilSSHServer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion functions/public/Invoke-WPFFixesNetwork.ps1
Original file line number Diff line number Diff line change
@@ -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."
}
2 changes: 1 addition & 1 deletion functions/public/Invoke-WPFOOSU.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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."
}
}
12 changes: 6 additions & 6 deletions functions/public/Invoke-WPFUpdatesdefault.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
10 changes: 5 additions & 5 deletions functions/public/Invoke-WPFUpdatesdisable.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion functions/public/Invoke-WPFUpdatessecurity.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading