Chapter 2. Running commands

 

Start looking at PowerShell examples on the internet, and it’s easy to get the impression that PowerShell is some kind of .NET Framework–based scripting or programming language. My 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 and see what we can make it do. But almost all of us began right where this chapter starts: simply running commands. That’s what we’ll be doing in this chapter: not scripting, not programming, but just running commands and command-line utilities.

2.1. Not scripting: just running commands

2.2. Opening PowerShell

2.3. Managing files and folders—you know this!

2.4. Accuracy counts

2.5. Not just files and folders: introducing PSDrives

2.6. Support for external commands

2.7. The same old commands—almost

2.8. Common points of confusion

2.9. Lab