PowerShell for non-programmers
Fifty commands cover nearly all routine work. Here are the ones needed most — with examples and no programming.
PowerShell ships with every Windows machine and needs no programming. Fifty commands cover most of the routine: find a file, replace a word, make a copy, delete old stuff, schedule a task. Here are the ones people actually need — no eight-hundred-page textbook.
Opening it
Press Start, type powershell, open the window. For admin tasks, right-click and choose “Run as administrator”.
Where am I: Get-Location. Change folder: Set-Location D:\docs.
Find
Get-ChildItem *.pdf | Where-Object Length -gt 1MBThis lists every PDF larger than a megabyte. Get-ChildItem reads the folder, Where-Object keeps the matching lines.
Search inside files: Select-String -Path *.md -Pattern "report". Text search without opening each file by hand.
Copy
Copy-Item report.docx report-2026-11-19.docxOne rule: a copy with a date in the name first, edits second. There is always a file to go back to.
Check the size
Get-ChildItem | Measure-Object Length -SumShows the file count and the total in bytes — useful when a folder “suddenly” takes forty gigabytes.

Make a backup
$date = Get-Date -Format "yyyyMMdd-HHmmss"
$dst = "D:\backup\site-$date"
New-Item -ItemType Directory -Path $dst | Out-Null
Copy-Item C:\site\content -Destination $dst -Recurse
Compress-Archive -Path $dst -DestinationPath "$dst.zip"Five lines copy the folder and pack it into a dated archive. Save them as backup.ps1 and run it by double-click or on a schedule.
Run it on a schedule
Windows Task Scheduler runs the script at, say, 22:00 daily — through the GUI or with Register-ScheduledTask.
Rule: the task must write a log, otherwise you learn about a breakage a month later, when the backup is needed.
Why not just use Explorer
PowerShell repeats: what you did by hand once can be done again in a month with one line. And it shows what was done — the command stays in history.
In short
- Open: type
powershellin Start. - Find:
Get-ChildItem,Select-String. - Copy:
Copy-Item. - Backup: five lines with
Compress-Archive.