powershell

Export your startup entries to a file Task Manager can't keep

Task Manager has no export. Twenty lines of PowerShell produce a dated CSV of every Run entry plus its approval state — the baseline inventory before any change.

ProofTune Project··5 min read
PowerShell illustration PowerShell

The script

terminal / powershell
$run = Get-ItemProperty 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Run'
$apr = Get-ItemProperty 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run' -ErrorAction SilentlyContinue

$rows = foreach ($p in $run.PSObject.Properties) {
  if ($p.Name -like 'PS*') { continue }              # drop PS metadata props
  $blob = $apr.$($p.Name)                             # 12-byte approval, may be absent
  [pscustomobject]@{
    Name    = $p.Name
    Command = $p.Value
    State   = if (-not $blob)          { 'Enabled(unmarked)' }
              elseif ($blob.Length -lt 12) { 'Unknown (short blob)' }
              elseif ($blob[0] -eq 2)  { 'Enabled' }
              elseif ($blob[0] -eq 3)  { 'Disabled' }
              else                     { 'Unrecognized' }
  }
}
$rows | Export-Csv "$env:USERPROFILE\Desktop\startup-inventory.csv" -NoTypeInformation

Why baseline-first pays

  • Diffable: run it weekly or before/after installing a suspect app; Compare-Object shows entries anything added.
  • Paste as evidence: a CSV line beats recounting a UI row from memory on a support call.
  • No write, at all: every command above is read-only. Safe on production images, an instructor machine, whatever you care to name.

The whole exercise takes under a second on a stock system and answers the expensive question — What did this machine *exactly* launch last week? — every time.

ProofTune ProjectEngineering notes — every claim here names the bytes a real tool touches. Verify first, install second.
ProofTune logo

See these exact settings inside the real tool

The browser replica runs the same strings and states as the installed app — click around before you ever install anything.