Chapter 4. PowerShell Fundamentals
Let's start by getting the obvious thing about PowerShell out of the way. It is a shell. The UNIX world has had a number of shells (the C shell, Korn shell, BASH, and so on), but the Microsoft world has a single shell, COMMAND.COM in the DOS-based operating systems, and its successor CMD.EXE in the NT-based ones. The term "shell" refers to a piece of software that wraps around the operating system kernel. The shell is an environment where commands can be entered to run other programs and text output from those programs can be displayed. Some basic tasks might be built into the shell itself—such as getting a listing of files in the current directory, copying and deleting files, and so on. With the Microsoft shells, it is sometimes difficult to know which commands are built into the shell (such as copy
) and which are separate utility programs (such as Xcopy
).
Shell Fundamentals
Most shells include some kind of scripting language; at their simplest, these are simply lists of commands that could have been typed in the interactive shell, but are executed as a batch task. The Microsoft shells have had batch files from the early days of DOS and although each new release has added some features, the language has remained ...
Get Microsoft® PowerShell, VBScript and JScript® Bible 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.