PowerShell Misc Examples

By Xah Lee. Date: . Last updated: .

Misc common tasks in PowerShell.

clear
(Clear-Host) Clear screen.
mv
(Move-Item) Move a file/dir to another dir.
echo
(Write-Output) Print to next pipe or screen.
ps
(Get-Process) Lists proceses.
kill
(Stop-Process) Stop one process or more.

Download Online File

Windows 10 has curl builtin, at C:\Windows\system32\curl.exe

curl -h for help. For syntax, see Linux: Download Website: wget, curl

Empty Trash

Clear-RecycleBin

Cancel Command

Press Ctrl+c to cancel a command.

PowerShell

How-to

Advanced

Script Examples