What Is Windows PowerShell Used For?

PowerShell 7 renaming PDF files in bulk with Rename-Item

You spot Windows PowerShell next to Command Prompt in the Start menu and wonder why anyone needs it in 2026. Quick answer: what is PowerShell used for? Automating and managing computers. People use it to handle files in bulk, check system details, control services and build reports. It also schedules jobs and manages cloud services … Read more

PowerShell vs Bash: Key Differences

PowerShell 7 filtering files by size with objects instead of text

PowerShell vs Bash comes down to one idea: PowerShell passes objects down the pipeline, while Bash passes plain text. Here’s the same filter in both: In this tutorial, we’ll run the same everyday jobs side by side in PowerShell 7, Windows PowerShell 5.1 and Bash (Git Bash on Windows). PowerShell vs Bash at a glance … Read more

How to Use SSH in PowerShell

Resolving an SSH host alias from a config file in PowerShell 7

To use SSH in PowerShell, type the same command you’d use on Linux or macOS. Windows ships the OpenSSH client, so this works in both PowerShell 7 and Windows PowerShell 5.1: Last week a teammate asked me why he still opened PuTTY to reach a Linux web server. He didn’t need to. This field guide … Read more

PowerShell Gallery: Find and Install Modules

Installing a PowerShell Gallery module for the current user in PowerShell 7

The PowerShell Gallery (powershellgallery.com) is Microsoft’s public repository of PowerShell modules and scripts. You search it and install from it right in the console: Output: No account is needed to download. In this tutorial, I’ll show you how to search the Gallery, inspect a module before you trust it, install it without admin rights, and … Read more

How to Open PowerShell in Windows 11 (Including as Admin)

Windows 11 Start menu search for PowerShell with Run as Administrator

The fastest way to open PowerShell in Windows 11 is to press Win+R, type pwsh (or powershell for Windows PowerShell 5.1), and press Enter: That’s one of several routes. Below I’ll walk through how to open PowerShell from the Start menu, Win+X, the Run box, Windows Terminal and Command Prompt, how to open it as … Read more

Write-Verbose and the -Verbose Switch in PowerShell

Write-Verbose messages shown with the -Verbose switch in PowerShell 7

Write-Verbose sends a status message to the verbose stream, which PowerShell hides until you add -Verbose or set $VerbosePreference to Continue: Output: The first line prints nothing. In this tutorial, I’ll show you how write-verbose powershell messages work in your own functions, how the preference flows, and how to capture stream 4. Add the -Verbose … Read more

Comment-Based Help in PowerShell (With Examples)

Comment-based help in PowerShell shown by Get-Help

Comment-based help in PowerShell is a comment block with keywords such as .SYNOPSIS inside your function or script. Get-Help reads it like built-in cmdlet help: Output: In this tutorial, I’ll show you how to write comment-based help in PowerShell for functions and scripts, where the block has to go, and what Get-Help shows differently in … Read more

Fix: Administrator Rights Are Required to Install Modules

Fix the administrator rights are required to install modules error

“Administrator rights are required to install modules” means Install-Module tried to write to Program Files without elevation. The quick fix is to install it for your account only: In this tutorial, I’ll reproduce the administrator rights are required to install modules error on a standard Windows account, then walk through four fixes in PowerShell 7 … Read more

How to Run a PowerShell Script at Startup in Windows

Run a PowerShell script at startup in Windows

You want a script to map drives or log a health check every time Windows starts, without anyone remembering to run it. Quick answer: to run a PowerShell script on startup, register a scheduled task with a logon trigger that starts powershell.exe with your script: In this tutorial, we’ll run a PowerShell script on startup … Read more