PowerShell for beginners command cheat sheet on Windows laptop

PowerShell for Beginners: 25 Commands Every Windows User Should Know

Disclosure: This article contains no affiliate links. If that changes, we will update this notice.

PowerShell for beginners has a reputation for being complicated. It is not. The command line looks intimidating at first glance. Once you learn a handful of practical commands, it becomes one of the fastest ways to manage files, troubleshoot services, and check system information on a Windows PC. No more clicking through five nested menus to find what you need.

This guide covers 25 commands that any Windows user can start using today. No scripting experience required. A printable cheat sheet is included at the bottom.

The basics

PowerShell for beginners: what it is and how it works

PowerShell is a command-line tool built into Windows. Instead of clicking through menus, you type a command and Windows carries it out immediately.

PowerShell commands are called cmdlets (pronounced “command-lets”). Most follow a simple pattern:

VerbNoun

The verb tells PowerShell what to do. The noun tells it what to act on. For example, Get-Process retrieves a list of running processes. Stop-Process closes one. Restart-Service restarts a Windows service. The naming pattern makes commands easy to guess once you know the verbs.

Get: retrieve information Set: change a setting Start: start something Stop: stop something New: create something Remove: delete something

Getting started

How to open PowerShell on Windows

Windows 11: Right-click the Start button → select “Terminal” or “Windows PowerShell.”
Windows 10: Press Windows + X → select “Windows PowerShell” from the menu.
Any version: Press Windows + R, type powershell, press Enter.
As admin: Search “PowerShell” in the Start menu → right-click → “Run as administrator.” Only needed for certain system commands.

Before you start

Basic syntax every beginner needs to know

Parameters refine what a command does

Parameters start with a hyphen and follow the command name. They tell PowerShell where to look, what to search for, or how to behave.

Get-ChildItem -Path C:\Users

Here, -Path tells PowerShell which folder to list.

Wrap paths with spaces in quotes

If a folder or file name contains a space, wrap the entire path in double quotes or the command will fail.

Get-ChildItem “C:\My Files\Reports”

Help is always available

If you forget how a command works or what parameters it accepts, use Get-Help followed by the command name.

Get-Help Get-Process

Some commands have short aliases

PowerShell has shortcuts for common commands. dir does the same thing as Get-ChildItem. cd works like Set-Location. They are fine to use, but full command names are easier to learn from when you are starting out.

The commands

25 useful PowerShell commands for beginners

Help and Discovery

1. Get-Help Shows help for any command

Get-Help Get-Service

The most important command for beginners. Use it whenever you’re unsure what a command does or what parameters it accepts.

2. Get-Command Lists available commands

Get-Command *service*

Useful when you can’t remember the exact name of a command. The asterisks act as wildcards: the above returns every command that includes the word “service.”

Navigation and File Commands

3. Get-Location Shows your current folder

Get-Location

Displays which folder PowerShell is currently working in. Equivalent to checking which directory you’re in before running a file command.

4. Set-Location Changes to a different folder

Set-Location C:\Users

Navigates to a different folder. Works the same as double-clicking a folder in File Explorer, but without the mouse.

5. Get-ChildItem Lists files and folders

Get-ChildItem C:\Reports

Shows everything inside a folder. One of the most frequently used commands for file management and troubleshooting missing files.

6. New-Item Creates a new file or folder

New-Item -Path C:\Work\NewFolder -ItemType Directory

Creates a folder at the path you specify. Change Directory to File to create a blank file instead.

7. Copy-Item Copies files or folders

Copy-Item C:\Work\Report.xlsx D:\Backup\

Copies a file from one location to another. The original remains in place.

8. Move-Item Moves a file or folder

Move-Item C:\Work\OldFile.docx C:\Archive\

Moves the file to a new location and removes it from the original location. Use Copy-Item first if you want to keep the original.

9. Remove-Item Deletes a file or folder. Use with care.

Remove-Item C:\Temp\oldfile.txt

Permanently deletes the file. Unlike dragging to the Recycle Bin, this does not give you a recovery option. Double-check the path before pressing Enter.

10. Rename-Item Renames a file or folder

Rename-Item C:\Work\draft.docx final.docx

Renames the file in place without moving it.

11. Test-Path Checks whether a file or folder exists

Test-Path C:\Invoices

Returns True or False. Useful for troubleshooting missing folders, mapped drives that aren’t connecting, or checking whether a path is correct before running another command.

Content and Search Commands

12. Get-Content Reads the contents of a text file

Get-Content C:\Logs\app.log

Prints the contents of a text file directly in the PowerShell window. Useful for reading log files without opening another application.

13. Set-Content Writes content to a file

Set-Content C:\Notes\todo.txt “Call supplier at 3 PM”

Writes the text to the file, replacing any existing content. Use Add-Content below if you want to add to the file instead of overwriting it.

14. Add-Content Adds text to an existing file

Add-Content C:\Notes\todo.txt “Send invoice reminder”

Appends new text to the end of an existing file without removing what’s already there.

15. Select-String Searches for text inside files

Select-String -Path C:\Logs\*.log -Pattern “error”

Scans one or more files for a specific word or phrase and returns every line where it appears. If your POS software logged an error overnight, Select-String scans the entire log and returns only the lines containing the word “error.” Faster than scrolling through hundreds of lines.

Process and System Commands

16. Get-Process Shows running processes

Get-Process outlook

Lists every running process on the computer, or narrows it to a specific application. Useful when an app is slow or you want to confirm whether something is actually running.

17. Stop-Process Stops a running process. Use only when necessary.

Stop-Process -Name notepad

Force-closes an application. Use this only when the app is frozen and won’t close normally. Unsaved work in that application will be lost.

18. Get-Service Lists Windows services

Get-Service spooler

Shows the status of Windows services. “Spooler” is the print spooler, the Windows service that manages print jobs. Checking it is often the first step in diagnosing printer problems.

19. Start-Service Starts a Windows service

Start-Service spooler

Starts a service that is stopped. Requires administrator rights.

20. Restart-Service Restarts a service

Restart-Service spooler

One of the most practical commands for everyday office troubleshooting. Printer queues freeze at the worst possible moments, and most of the time, the fix takes 30 seconds. Check first: run Get-Service spooler. If the status shows “Stopped,” that’s your answer. Then run Restart-Service spooler. No technician, no reboot, no hour on hold with the manufacturer’s support line.

21. Get-ComputerInfo Shows detailed system information

Get-ComputerInfo

Pulls Windows version, hardware details, and other system information. Useful to have ready before calling IT support so you can answer their first questions immediately.

Network Commands

22. Get-NetIPAddress Shows IP address information

Get-NetIPAddress

Shows the IP addresses assigned to your computer. An IP address is your device’s unique identifier on the network. You’ll need it when troubleshooting connectivity or setting up shared resources like printers and file folders.

23. Test-Connection Tests whether a device or site is reachable

Test-Connection google.com

Sends a signal to the address and reports back whether it received a response. Works like the classic “ping” command but with cleaner output. Use it to test internet access or check whether another computer on your network is reachable.

24. Get-NetAdapter Shows network adapters and their status

Get-NetAdapter

Lists your network adapters (the components that connect your PC to WiFi or a wired network) along with their current status. Useful for identifying whether a network connection is active, disabled, or disconnected.

25. Get-Member Shows what a command’s output contains

Get-Process | Get-Member

The pipe symbol ( | ) sends the output of one command into another. This combination shows you every property and method Get-Process captures about each running app. A natural next step once the basics feel comfortable.

Quick reference

PowerShell cheat sheet: save or print this

Command What it does Example
Get-HelpShows help for a commandGet-Help Get-Service
Get-CommandLists available commandsGet-Command *network*
Get-LocationShows current folderGet-Location
Set-LocationChanges folderSet-Location C:\Users
Get-ChildItemLists files and foldersGet-ChildItem C:\Docs
New-ItemCreates file or folderNew-Item -ItemType Directory
Copy-ItemCopies itemsCopy-Item file.txt D:\Backup
Move-ItemMoves itemsMove-Item file.txt C:\Archive
Remove-ItemDeletes items (no Recycle Bin)Remove-Item old.txt
Rename-ItemRenames itemsRename-Item old.txt new.txt
Test-PathChecks if path existsTest-Path C:\Data
Get-ContentReads file contentGet-Content notes.txt
Set-ContentWrites to a fileSet-Content notes.txt “Hello”
Add-ContentAppends to a fileAdd-Content notes.txt “More”
Select-StringSearches text in filesSelect-String -Pattern “error”
Get-ProcessLists running processesGet-Process
Stop-ProcessStops a process (use with care)Stop-Process -Name excel
Get-ServiceLists servicesGet-Service spooler
Start-ServiceStarts a serviceStart-Service spooler
Restart-ServiceRestarts a serviceRestart-Service spooler
Get-ComputerInfoShows system infoGet-ComputerInfo
Get-NetIPAddressShows IP addressesGet-NetIPAddress
Test-ConnectionTests connectivityTest-Connection google.com
Get-NetAdapterShows network adaptersGet-NetAdapter

Before you run anything

How to use PowerShell safely

Six rules for beginners
  • Read the command before pressing Enter. Especially Remove-Item and Stop-Process. There is no undo.
  • Start with Get- commands. They retrieve information only and cannot modify anything on your system.
  • Use Get-Help if you’re unsure. It’s built in and always accurate.
  • Test file commands in a non-critical folder first. Create one now before you need it: New-Item -Path C:\PSTest -ItemType Directory. Use this folder for every practice command in this guide. And before running Remove-Item anywhere, run Get-ChildItem on the same path first. What you see is what Remove-Item will delete.
  • Don’t run as administrator unless required. Service commands like Start-Service and Restart-Service need it. Most file and information commands do not.
  • Double-check paths before deleting. Use Test-Path or Get-ChildItem to verify you’re looking at the right location before running Remove-Item.

What goes wrong

Common beginner mistakes

Wrong path

Most PowerShell command failures happen because the file or folder path is incorrect. Use Tab to autocomplete folder names. Press Tab after typing part of a path and PowerShell will complete it for you.

Forgetting quotes around paths with spaces

If a folder name contains a space, the command will fail without quotes around the full path.

Get-ChildItem “C:\My Files\Reports”

Needing admin rights and not having them

Service commands like Start-Service and Restart-Service require administrator access. If a command fails with an “Access is denied” error, close PowerShell, reopen it by right-clicking and choosing “Run as administrator,” then try again.

Confusing PowerShell with Command Prompt

Some older commands like ipconfig work in both, but PowerShell has different syntax and far more capability. If a command that works in Command Prompt fails in PowerShell, look up the PowerShell equivalent. For example, Get-NetIPAddress instead of ipconfig.

FAQ

Frequently asked questions

What is the most useful PowerShell command for beginners?

Get-Help is the most important because it helps you understand every other command. After that, Get-ChildItem, Get-Process, and Restart-Service are the most practical for everyday office use.

Is PowerShell only for IT professionals?

No. IT teams use it for advanced scripting and automation, but everyday office users can get real value from basic commands for troubleshooting services, checking files, and pulling system information before calling support.

What is the difference between PowerShell and Command Prompt?

Command Prompt is older and more limited. PowerShell is more powerful, uses a consistent naming structure, and is built for automation and system management. Some commands overlap, but PowerShell can do significantly more.

Can PowerShell damage my computer?

Remove-Item permanently deletes files with no Recycle Bin recovery. Start with Get- commands until you’re comfortable. They retrieve information only and can’t modify anything.

Do I need to learn scripting to use PowerShell?

No. Single-line commands like the ones in this guide deliver real value without any scripting knowledge. Scripting is useful if you want to automate tasks, but it is a separate skill you can learn later.

Open PowerShell, run a few Get- commands on your own machine, and keep this cheat sheet nearby. The fifteen minutes it takes to get comfortable with PowerShell for beginners basics will pay back quickly on any Windows PC. Get-Process, Restart-Service, and Test-Connection alone handle a majority of the troubleshooting that used to require a call to IT or ten minutes of menu-clicking.

If you’re looking to tighten up your broader Windows security posture while you’re at it, here’s how to set up two-step verification on your Microsoft account.

And if you’re still deciding which version of Microsoft 365 your business actually needs, here’s our breakdown of Office 365 web vs desktop apps and where the real differences are.

Similar Posts