Skip to content

About

Personal Windows maintenance scripts

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Maintenance Scripts

Personal Windows maintenance scripts — minimal, traceable, Turkish and English.

Kişisel Windows bakım betikleri — sade, izlenebilir, Türkçe ve İngilizce.

License Validate Secret Scan Quality Hygiene Link Check Text Audit GitLab CI

Language / Dil: English · Türkçe


English

What is this?

Each script does one job: it runs commands in order and writes output both to the console and to its own log folder. No menus, no options, no surprises.

Scripts

Script Does
Repair-Windows.bat DISM + SFC + WinSxS maintenance (includes ResetBase)
Reset-Windows-Update.bat Reset Windows Update components
Clear-DnsClientCache.bat Flush DNS cache
WinGet-Upgrade.bat Upgrade all packages (winget)
Update-Components.bat Upgrade Python/pip, pipx itself and pipx-managed packages, and Node.js/npm global packages
Bug-Report.ps1 Event log HTML report (-Period Daily, Weekly, Monthly)

Usage

  1. Run Scripts/<name>.bat as administrator (right-click → Run as administrator); only Repair-Windows.bat and Reset-Windows-Update.bat require it.
  2. Each script logs under Logs/<Script-Name>/; every folder keeps an index.txt run ledger.
  3. Bug-Report.ps1 runs on a schedule: pwsh.exe -NoProfile -ExecutionPolicy Bypass -File "Scripts\Bug-Report.ps1" -Period Daily (use powershell.exe on a host without PowerShell 7)
  4. Update-Components.bat upgrades Python/pip, pipx itself and pipx-managed packages, and Node.js/npm global packages (user scope). It forwards arguments to Tools/Update-Components.ps1. Dry-run: Scripts\Update-Components.bat -Check or powershell -NoProfile -File Tools/Update-Components.ps1 -Check JSON report (CI/CD): add -ReportPath Logs\Update-Components\run.json (schema v1; works with -Check or a real run). Note: global npm packages are upgraded to the latest available version (including major versions) after npm outdated -g is rechecked; review -Check output first because major upgrades can change global CLI behavior.

Rules


Türkçe

Nedir?

Her betik tek iş yapar: komutları sırayla çalıştırır, çıktıyı hem ekrana hem de kendi günlük klasörüne yazar. Menü yok, seçenek yok, sürpriz yok.

Betikler

Betik İş
Repair-Windows.bat DISM + SFC + WinSxS bakımı (ResetBase dahil)
Reset-Windows-Update.bat Windows Update bileşenlerini sıfırlama
Clear-DnsClientCache.bat DNS önbelleğini temizleme
WinGet-Upgrade.bat Tüm paketleri yükseltme (winget)
Update-Components.bat Python/pip, pipx ve Node.js/npm global paketlerini yükseltme
Bug-Report.ps1 Olay günlüğü HTML raporu (-Period Daily, Weekly, Monthly)

Kullanım

  1. Scripts/ klasöründeki betiği yönetici olarak çalıştırın (sağ tık → Yönetici olarak çalıştır); bunu yalnızca Repair-Windows.bat ve Reset-Windows-Update.bat gerektirir.
  2. Her betik günlüğünü Logs/<Betik-Adı>/ altına yazar; her klasörde index.txt koşu dökümünü tutar.
  3. Bug-Report.ps1 Zamanlayıcı ile koşar: pwsh.exe -NoProfile -ExecutionPolicy Bypass -File "Scripts\Bug-Report.ps1" -Period Daily (PowerShell 7 yoksa powershell.exe kullanın)
  4. Update-Components.bat, Python/pip, pipx kendi kendine ve pipx yönetimli paketleri, ve Node.js/npm global paketlerini yükseltir (kullanıcı kapsamı). Bağımsız değişkenleri Tools/Update-Components.ps1 betiğine iletir. Kuru çalıştırma: Scripts\Update-Components.bat -Check veya powershell -NoProfile -File Tools/Update-Components.ps1 -Check JSON raporu (CI/CD): -ReportPath Logs\Update-Components\run.json ekleyin (şema v1; -Check veya gerçek çalıştırmayla kullanılabilir). Not: global npm paketleri, npm outdated -g yeniden kontrol edildikten sonra en son sürüme yükseltilir (major sürümler dâhil); major yükseltmeler global CLI davranışını değiştirebileceği için önce -Check çıktısını gözden geçirin.

Kurallar

About

Personal Windows maintenance scripts

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages