A short collection of useful PowerShell snippets for quick inventory, maintenance, and simple automation on Windows. Ideal for users who want to understand the basics and safely apply them in daily tasks.
          Step 01
          
        Gather system info
List device model, BIOS, and installed apps in a single command — great for quick hardware and software reports.
          Step 02
          
      Automate maintenance
Wrap cleanup or update commands with verbose output and error handling so they can be reused or shared safely.
Starter bundle
- Works on PowerShell 5.1 and 7+.
 - No additional modules required.
 - Outputs to both console and CSV.
 
# powershell-essentials.ps1
$inventory = Get-CimInstance Win32_ComputerSystem, Win32_BIOS
$apps = Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* |
        Select-Object DisplayName, DisplayVersion
$report = [pscustomobject]@{
    System = $inventory.Name
    BIOS = $inventory.Manufacturer + ' ' + $inventory.Version
    AppCount = $apps.Count
}
$report | Tee-Object -FilePath "$env:USERPROFILE\Desktop\inventory.csv" | Format-List