Windows Server Automation with PowerShell Cookbook: Powerful ways to automate, manage and administrate Windows Server 2022 using PowerShell 7, 5th Edition
- Length: 568 pages
- Edition: 1
- Language: English
- Publisher: Packt Publishing
- Publication Date: 2023-02-09
- ISBN-10: 1804614238
- ISBN-13: 9781804614235
- Sales Rank: #0 (See Top 100 Books)
Use over 100 PowerShell 7.2 recipes to deepen your understanding of Windows Server 2022 and help you learn how to automate common administrative tasks with ease.
Key Features
- New edition updated to the latest version of PowerShell 7.2 and Windows Server 2022
- Discover new ways to optimize your PowerShell code by working through easy-to-follow recipes
- Learn PowerShell best practices to automate, manage and administrate Windows Server 2022
Book Description
Windows Server Automation with PowerShell Cookbook is back with a new edition, featuring over 100 PowerShell recipes that will make your day-to-day work easier. This book is designed to help you learn how to install, configure, and use PowerShell 7.2 effectively.
To start with, we’ll look at how to install and configure PowerShell 7.2, along with useful new features and optimizations, and show you how the PowerShell compatibility solution bridges the gap to older versions of PowerShell. We’ll also be covering a wide range of fundamental and more advanced use cases, including how to create a VM and setup an Azure VPN as well as looking at how to backup to Azure. As you progress, you’ll explore topics like using PowerShell to manage networking and DHCP in Windows Server, objects in Active Directory, Hyper-V, and Azure. We’ll also take a closer look at WSUS, containers and see how to handle modules that are not directly compatible with PowerShell 7. Finally, you’ll also learn how to use some powerful tools to diagnose and resolve issues with Windows Server.
By the end of this PowerShell book, you’ll know how to use the PowerShell 7.2 to automate tasks on Windows Server 2022 with ease, helping your windows environment to run faster and smoother.
What you will learn
- Perform key admin tasks on Windows Server
- Keep your organization secure with JEA, group policies, logs, and Windows Defender
- Use the .NET Framework for administrative scripting
- Manage data and storage on Windows, including disks, volumes, and filesystems
- Report system performance using built-in cmdlets and WMI to obtain single measurements
- Apply the right tools and modules to troubleshoot and debug Windows Server
- Create, manage, and backup a 2nd VM using the subnetwork in Azure
- Learn how to set up a VPN in Azure with PowerShell
Who This Book Is For
This book is for systems administrators, software architects, developers, consultants, and engineers working with Windows Server 2022 who want to automate tasks more effectively with PowerShell 7.2. You’ll need have conquered the basics of PowerShell before you can get started with this book.
Windows Server Automation with PowerShell Cookbook, Fifth Edition: Powerful ways to automate and manage Windows Server 2022 administrative tasks 1 Installing and Configuring PowerShell 7 Feedback Introduction Systems used in the chapter Installing PowerShell 7 Getting ready How to do it... How it works... There's more... Installing PowerShell 7 Using Chocolatey Getting ready How to do it... How it works... There's more... Using the PowerShell 7 console Getting ready How to do it... How it works... There's more... Building PowerShell 7 profile files Getting ready How to do it... How it works... There's more... Exploring installation artifacts Getting ready How to do it... How it works... There's more... Installing VS Code Getting ready How to do it... How it works... There's more... Installing the Cascadia Code font How to do it... How it works... There's more... Exploring PSReadline How to do it... How it works... There's more... 2 Managing PowerShell 7 in the Enterprise Feedback Introduction The system used in the chapter Utilizing Windows PowerShell Compatibility Getting ready How to do it... How it works... There's more... Installing RSAT Tools Getting ready How to do it... How it works... There's more... Exploring Package Management Getting ready How to do it... How it works... There's more... Exploring PowerShellGet and the PS Gallery Getting ready How to do it... How it works... There's more... Creating and using a local package repository Getting ready How to do it... How it works... There's more... Establishing a script signing environment Getting ready How to do it... How it works... There's more... Working with shortcuts and the PSShortCut module Getting ready How to do it... How it works... There's more... Working with Archive files Getting ready How to do it... How it works... There's more... Searching for files using the Everything search tool Getting ready How to do it... How it works... There's more... 3 Exploring .NET Feedback Introduction The system used in the chapter Exploring .NET Assemblies Getting ready How to do it... How it works... There's more... Exploring .NET Classes Getting ready How to do it... How it works... There's more... Exploring .NET Methods Getting ready How to do it... How it works... There's more... Creating a C# Extension Getting ready How to do it... How it works... There's more... Creating a cmdlet Getting ready How to do it... How it works... There's more... 4 Managing Active Directory Feedback Introduction The systems used in the chapter Installing a Forest Root Domain Getting ready How to do it... How it works... There's more... Testing an AD installation Getting ready How to do it... How it works... There's more... Installing a replica Domain Controller Getting ready How to do it... How it works... There's more... Installing a Child domain Getting ready How to do it... How it works... There's more... Creating and Managing AD Users and groups Getting ready How to do it... How it works... There's more... Managing AD computers Getting ready How to do it... How it works... There's more... Adding/Removing users using a CSV file Getting ready How to do it... How it works... There's more... Creating Group Policy Objects Getting ready How to do it... How it works... There's more... Reporting on AD Users Getting ready How to do it... How it works... There's more... Reporting on AD Computers Getting ready How to do it... How it works... There's more... Managing AD Replication Getting Ready How to do it… How it works… There’s more…
Donate to keep this site alive
How to download source code?
1. Go to: https://github.com/PacktPublishing
2. In the Find a repository… box, search the book title: Windows Server Automation with PowerShell Cookbook: Powerful ways to automate, manage and administrate Windows Server 2022 using PowerShell 7, 5th Edition
, sometime you may not get the results, please search the main title.
3. Click the book title in the search results.
3. Click Code to download.
1. Disable the AdBlock plugin. Otherwise, you may not get any links.
2. Solve the CAPTCHA.
3. Click download link.
4. Lead to download server to download.