PowerShell scripts for Windows maintenance and updates.
If you don't have a profile yet, create one first:
New-Item -Path $profile -ItemType File -ForceThen open and edit it:
notepad $profileor
code $profileCopy the entire utils.ps1 content and paste it into your profile. Save and restart PowerShell.
updateRun with disk cleanup:
update -Disk- Requires Administrator privileges
- PSWindowsUpdate module is installed automatically on first run
- Requires winget for app updates
- Temp cleanup:
$env:TEMP$env:LOCALAPPDATA\TempC:\Windows\Temp
- Windows 10/11
- PowerShell 5.1+
- Administrator rights
- Internet connection