Introduction to PowerShell
PowerShell is a cross-platform (Windows, Linux, and macOS) task automation framework for IT professionals. PowerShell contains an interactive shell and a scripting language. The interactive shell is on par with the best Linux shells, including Bash. The scripting language is based on .NET and has the power of Perl, Ruby, and many other popular languages. PowerShell allows you to manage all aspects of Windows 11.
In this chapter, we cover the following:
- What is PowerShell?
- Installing Windows PowerShell and PowerShell 7 in Windows 11
- What are cmdlets, objects, and the pipeline?
- PowerShell’s scripting language
- Modules and commands
- Hardening PowerShell
- Configuring PowerShell
It is not possible to describe PowerShell fully in a single chapter. This chapter aims to introduce the key concepts and terms, show examples, and give you resources to discover more about specific features.