Skip to content

Commit

Permalink
Updated updateme.ps1 to version 11.05122024
Browse files Browse the repository at this point in the history
Signed-off-by: Buck Woody <[email protected]>
  • Loading branch information
BuckWoody authored Dec 3, 2024
1 parent b3b4e14 commit 39ec09d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions system_setup/windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@ As I mentioned, I run a complete update script to keep my system up to date and
> This is the most dangerous of the scripts, don't run this on your test system without understanding everything it does. Completely. You are on your own here.
<pre>
# updateme.ps1
# Author: Buck Woody
# Purpose: Windows 11 System Maintenance
# Version: 11.05122024

$host.ui.RawUI.WindowTitle = "Maintenance begins..."
#Install-Module -Name PSCalendar -RequiredVersion 2.9.0
get-calendar
Expand All @@ -140,6 +145,10 @@ Write-Host "Running PSWindowsUpgrade" -ForegroundColor Black -BackgroundColor Da
get-windowsupdate
install-windowsupdate -acceptall | Format-Table -Property Result, Title, Description -wrap

$host.ui.RawUI.WindowTitle = "Upgrade WSL..."
Write-Host "Upgrade WSL" -ForegroundColor Black -BackgroundColor DarkYellow
wsl --update

$host.ui.RawUI.WindowTitle = "Beginning File Cleanup with CleanMgr..."
Write-Host "Running CleanMgr" -ForegroundColor Black -BackgroundColor DarkYellow
Start-Process -FilePath CleanMgr.exe -ArgumentList '/sagerun:1' ##-WindowStyle Hidden
Expand Down Expand Up @@ -177,6 +186,7 @@ clear-all-event-logs -ComputerName COOMPUTERNAMEHERE
Write-Host "Maintenance Complete. " -ForegroundColor Black -BackgroundColor DarkYellow
cd $HOME

# EOF: updatement.ps1
</pre>

# Configuration - Put Windows 11 Full Context Menu back in Explorer and Disable Web Searching
Expand Down

0 comments on commit 39ec09d

Please sign in to comment.