Chapter 4. Running commands

When you start looking at PowerShell examples on the internet, it’s easy to get the impression that PowerShell is some kind of .NET Framework–based scripting or programming language. Our fellow Microsoft Most Valuable Professional (MVP) award recipients, and hundreds of other PowerShell users, are pretty serious geeks, and we like to dig deep into the shell to see what we can make it do. But almost all of us began right where this chapter starts: running commands. That’s what we’ll be doing in this chapter: not scripting, not programming, but running commands and command-line utilities.

4.1. Not scripting, but running commands

PowerShell, as its name implies, is a shell. It’s similar to the Cmd.exe command-line ...

Get Learn Windows PowerShell in a Month of Lunches, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.