Book Image

Powershell Core 6.2 Cookbook

By : Jan-Hendrik Peters
Book Image

Powershell Core 6.2 Cookbook

By: Jan-Hendrik Peters

Overview of this book

This book will follow a recipe-based approach and start off with an introduction to the fundamentals of PowerShell, and explaining how to install and run it through simple examples. Next, you will learn how to use PowerShell to access and manipulate data and how to work with different streams as well. You will also explore the object model which will help with regard to PowerShell function deployment. Going forward, you will get familiar with the pipeline in its different use cases. The next set of chapters will deal with the different ways of accessing data in PowerShell. You will also learn to automate various tasks in Windows and Linux using PowerShell Core, as well as explore Windows Server. Later, you will be introduced to Remoting in PowerShell Core and Just Enough Administration concept. The last set of chapters will help you understand the management of a private and public cloud with PowerShell Core. You will also learn how to access web services and explore the high-performance scripting methods. By the end of this book, you will gain the skills to manage complex tasks effectively along with increasing the performance of your environment.
Table of Contents (14 chapters)

What this book covers

Chapter 1, Introduction to PowerShell Core, serves as an introduction and covers the very first steps with PowerShell Core.

Chapter 2, Reading and Writing Output, covers how to work with data and providers.

Chapter 3, Working with Objects, is an introduction to object-oriented programming and also shows you the benefits of using objects in your code.

Chapter 4, Mastering the Pipeline, is all about the pipeline and shows you how to work efficiently with large amounts of data in the pipeline.

Chapter 5, Importing, Using, and Exporting Data, is all about persisting and reading data from XML to JSON, and from REST to SQL.

Chapter 6, Windows and Linux Administration, compares different typical administrative tasks on Linux and Windows and demonstrates the benefits of PowerShell Core in these scenarios.

Chapter 7, Windows Server Administration, covers the pitfalls and the benefits of using PowerShell Core in a purely Windows environment. You will configure S2D, Docker, Active Directory Domain Services, and more.

Chapter 8, Remoting and Just Enough Administration, introduces remote debugging, Just Enough Administration, and the common information model.

Chapter 9, Using PowerShell for Hyper-V and Azure Stack Management, concentrates on the private cloud and shows you how to manage Hyper-V, deploy Azure Stack, and maintain your infrastructure workloads with PowerShell Core.

Chapter 10, Using PowerShell with Azure and Google Cloud, gives you two public cloud providers and compares the typical workloads, including storage and compute.

Chapter 11, Accessing Web Services, is all about REST. This chapter will not only show you how different actual REST APIs are accessed; it will also have you create your own!

Chapter 12, High-Performance Scripting, covers all the important concepts concerning the performance of your scripts. You will learn about true parallelization, efficient filtering, and more.