This is the code repository for Powershell Core 6.2 Cookbook, published by Packt.
Leverage command-line shell scripting to effectively manage your enterprise environment
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.
This book covers the following exciting features:
- Leverage cross-platform interaction with systems
- Make use of the PowerShell recipes for frequent tasks
- Get a better understanding of the inner workings of PowerShell
- Understand the compatibility of built-in Windows modules with PowerShell Core
- Learn best practices associated with PowerShell scripting
- Avoid common pitfalls and mistakes
If you feel this book is for you, get your copy today!
All of the code is organized into folders. For example, Chapter02.
The code will look like the following:
public Car(string make, string model, ConsoleColor color){
Color = color;
Make = make;
Model = model;
}
Following is what you need for this book: This book will be for windows administrators who want to enhance their PowerShell scripting skills to the next level. System administrators wanting to automate common to complex tasks with PowerShell scripts would benefit from this book. Prior understanding on PowerShell would be necessary.
With the following software and hardware list you can run all code files present in the book (Chapter 1-).
Book's lab environment:
- A Domain Controller/Router/Certificate Authority (recipes requiring Active Directory)
- Three file servers (SOFS and S2D recipes)
- Two Hyper-V hosts (Hyper-V and clustering recipes)
- A web server (IIS recipes) with SQL
- A CentOS 7.4 node (Linux recipes)
Lab requirements:
- Windows 10/Server 2016
- A virtualization-enabled, modern processor (i5 or similar)
- At least 20 GiB RAM if all machines are up and running
- At least 50 GiB of free space on an SSD (no spinning disks)
- Deploy the lab using Windows PowerShell
- The Hyper-V feature needs to be enabled (requires a restart)
- One ISO file Windows Server 2016 Datacenter
- One ISO file SQL Server 2017 (Standard or Datacenter)
- One ISO file CentOS 7.4; a DVD image is recommended, since a network image requires an internet-connected host!
Cloud services required:
- Register for a free Azure DevOps account at https://dev.azure.com to follow the Azure DevOps recipes.
- Register for a free Microsoft Azure account at https://azure.microsoft.com/enus/free to follow all Azure recipes.
- Register for a free Google Cloud account at https://cloud.google.com to follow all Google Cloud recipes.
We also provide a PDF file that has color images of the screenshots/diagrams used in this book. Click here to download it.
Jan-Hendrik is an automation and DevOps professional by day, and a developer for the AutomatedLab framework by night. After working at an international retailer automating distributed POS support systems, he started working as a premier field engineer for Microsoft Germany, where he helps customers automate their infrastructure on-premises and in the cloud.
When he is not working, he likes to spend his time brewing his own beer, curing his own bacon, and generally doing manual labor.
Click here if you have any feedback or suggestions.
If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.
https://packt.link/free-ebook/9781789803303