Book description
Use over 100 PowerShell 7.2 recipes to deepen your understanding of Windows Server 2022 and see how to automate common administrative tasks with ease
Purchase of the print or Kindle book includes a free eBook in PDF format
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 common tasks and manage DHCP in Microsoft Windows Server, objects in Active Directory, Hyper-V, and Azure
Book Description
The 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 set up an Azure VPN, as well as looking at how to back up to Azure. As you progress, you'll explore topics such as 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 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 .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 back up a second 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 to have conquered the basics of PowerShell and have a rudimentary understanding of PowerShell scripting before you can get started with this book.
Table of contents
- Preface
- Installing and Configuring PowerShell 7
-
Managing PowerShell 7 in the Enterprise
- Introduction
- Utilizing Windows PowerShell Compatibility
- Installing RSAT
- Exploring Package Management
- Exploring PowerShellGet and the PS Gallery
- Creating and Using a Local Package Repository
- Establishing a Script Signing Environment
- Working With Shortcuts and the PSShortCut Module
- Working With Archive Files
- Searching for Files Using the Everything Search Tool
- Exploring .NET
-
Managing Active Directory
- Introduction
- Installing a Forest Root Domain
- Testing an AD installation
- Installing a Replica Domain Controller
- Installing a Child Domain
- Creating and Managing AD Users and Groups
- Managing AD Computers
- Adding/Removing Users Using a CSV Files
- Creating Group Policy Objects
- Reporting on AD Users
- Reporting on AD Computers
- Managing AD Replication
-
Managing Networking
- Introduction
- Configuring IP Addressing
- Testing Network Connectivity
- Installing DHCP
- Configuring DHCP Scopes and Options
- Using DHCP
- Configuring a DHCP Reservation
- Implementing DHCP Fail Over/Load Balancing
- Implementing DNS in the Enterprise
- Managing DNS Zones and Resource Records
- Configuring DNS Forwarding
- Implementing Enterprise Security
- Managing Storage
- Managing Shared Data
- Managing Printing
- Exploring Windows Containers
-
Managing Hyper-V
- Introduction
- Installing Hyper-V inside Windows Server
- Creating a Hyper-V VM
- Using PowerShell Direct
- Using Hyper-V VM groups
- Configuring the VM hardware
- Configuring VM networking
- Implementing nested virtualization
- Managing the VM state
- Managing a VM and VM storage movement
- Managing VM replication
- Managing VM checkpoints
- Creating a Hyper-V report
- Debugging and Troubleshooting Windows Server
- Managing Windows Server with Window Management Instrumentation (WMI)
- Managing Windows Update Services
- Other Books You May Enjoy
- Index
Product information
- Title: Windows Server Automation with PowerShell Cookbook - Fifth Edition
- Author(s):
- Release date: January 2023
- Publisher(s): Packt Publishing
- ISBN: 9781804614235
You might also like
book
Windows Server Automation with PowerShell Cookbook - Fourth Edition
Develop a holistic understanding of Windows Server with over 100 PowerShell recipes Key Features Updated with …
book
Windows Server 2019 Automation with PowerShell Cookbook - Third Edition
Automate Windows server tasks with the powerful features of the PowerShell Language Key Features Leverage PowerShell …
book
Mastering Windows PowerShell Scripting - Second Edition
Master the art of automating and managing your environment using PowerShell About This Book Find quick …
book
Windows Server 2022 & Powershell All-in-One For Dummies
All the essentials for administering Windows Server 2022 in one book Looking for a little help …