Windows Server Automation with PowerShell Cookbook, Fifth Edition: Powerful ways to automate, manage, and administrate Windows Server 2022 using PowerShell 7.2
, Fifth Edition
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
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.
Who is this book 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.
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
It is a great product and exactly what I was looking for.
Feefo Verified review
Daniel SchroederJul 12, 2023
5
First off, I'll state that this is not a "learn how to write PowerShell" book that teaches you about the PowerShell syntax and best practices to writing PowerShell. It assumes that you have written some PowerShell before and are familiar with the basics. It does have a few small sections with some of this information, but it is not the books intended purpose nor where it shines.Instead, as the "Cookbook" in the title implies, it is a composition of "recipes"; common actions that Windows server administrators often need perform. The book references PowerShell 7 for all of its recipes. Dealing with Active Directory? There's a chapter on that with common operations you'll probably need to leverage. Need to automate something with printers? There's a chapter on that. Working with Hyper-V, or need to make networking changes, or configure Windows Updates? There's chapters for those.For me, this isn't the type of book that I would read cover-to-cover (and I haven't). Instead, I read the table of contents to understand all of the different server administration topics that it covers (and there's a lot!) so I know when I might come reference it. I checked out the sections that I found interesting, and leaned quite a bit. It made me aware of many cmdlets that I did not know existed. This book will serve as a good reference for when I need to dig into a particular topic. Definitely a great resource for any server admin.
Amazon Verified review
Krishna VenkatJul 01, 2023
3
Windows Server Automation with PowerShell Cookbook is an outstanding guide that equips IT professionals and system administrators with the essential knowledge to automate Windows Server tasks using PowerShell. Crafted by seasoned experts in the field, this cookbook offers a wealth of practical recipes and hands-on examples to streamline server management processes with utmost efficiency.Right from the start, the book plunges into the core topics, delivering a comprehensive coverage of common server administration scenarios. From user and group management to Active Directory configuration, networking, security, and storage, it leaves no stone unturned when it comes to crucial aspects of Windows Server management.The strength of this book lies in its impeccable organization. With a logical structure, readers can swiftly locate the relevant information they need or explore new techniques at their own pace. Each chapter focuses on a specific facet of automation, providing well-documented recipes with crystal-clear instructions and concise code snippets that facilitate seamless understanding and implementation.The authors demonstrate their expertise by encompassing both the fundamentals and advanced concepts, catering to readers with varying skill levels. Beginners will find an excellent introduction to PowerShell scripting, with foundational concepts explained and practical examples provided. Intermediate and advanced users, on the other hand, can relish the detailed coverage of complex scenarios such as virtual machine management, PowerShell Desired State Configuration (DSC), and PowerShell Remoting for remote administration.Furthermore, the book places strong emphasis on best practices and security considerations throughout. It not only showcases techniques to ensure reliable and efficient automation but also underscores the importance of secure practices to safeguard sensitive data and fend off unauthorized access. This focus on security is vital in today's ever-evolving threat landscape, making the book an invaluable resource for IT professionals concerned with fortifying their server infrastructure.While the book covers an extensive range of topics, a few areas may leave readers craving deeper insights. Occasionally, the recipes could benefit from additional explanation and context, which would further enhance the overall learning experience. Additionally, while the book provides practical examples and code snippets, a companion website or downloadable code repository would have been a welcome addition, enabling readers to effortlessly access and experiment with the provided code.In conclusion, Windows Server Automation with PowerShell Cookbook is an indispensable resource for anyone involved in Windows Server administration. Its comprehensive coverage, practical examples, and adherence to best practices make it a valuable asset for IT professionals seeking to streamline server management tasks. Despite minor limitations, this cookbook stands as an excellent reference guide and learning tool, empowering readers to harness the full potential of PowerShell for efficient and automated server management.
Amazon Verified review
Smrati PandeyJun 13, 2023
5
Book is good and has covered almost all the details necessary.
Amazon Verified review
Amir S.May 21, 2023
5
I have recently had the pleasure of being asked to review and provide feedback on the Fifth Edition of "Windows Server Automation with PowerShell Cookbook" by Thomas Lee.This updated version is packed with over 100 recipes, providing invaluable insights and practical solutions to simplify day-to-day work. The book is based on the latest PowerShell 7.2 version and features.I particularly liked how each topic is broken into: “Getting things ready”, “How to do it”, “How it works” and “There is more!” format. Makes reading easier and straight to the point!The book didn't stop at administrative tasks alone. It delved into managing data and storage on Windows, including disks, volumes, and filesystems, ensuring I had a holistic understanding of PowerShell's capabilities.Overall, it is a great reference and helps expands your knowledge and scripting style.I extend my sincere appreciation to Lee Thomas for crafting such a comprehensive and practical resource. It's truly a game-changer for anyone seeking to elevate their PowerShell skills and harness the full potential of automation.
Thomas Lee is a consultant/trainer/writer based in the UK and has been in the IT business since the late 1960s. After graduating from Carnegie Mellon University, Thomas joined ComShare where he was a systems programmer building the Commander II time-sharing operating system, a forerunner of today's cloud computing paradigm. In the mid-1970s, he moved to ICL to work on the VME/K operating system. After a sabbatical in 1980/81, he joined Accenture, leaving in 1988 to run his own consulting and training business, which is still active today.
Thomas holds numerous Microsoft certifications, including MCSE (one of the first in the world) and later versions, MCT (25 years), and was awarded Microsoft's MVP award 17 times.
Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.
If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.
Please Note: Packt eBooks are non-returnable and non-refundable.
Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:
You may make copies of your eBook for your own use onto any machine
You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website?
If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:
Register on our website using your email address and the password.
Search for the title by name or ISBN using the search option.
Select the title you want to purchase.
Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title.
Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook?
If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
To view your account details or to download a new copy of the book go to www.packtpub.com/account
Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.
You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.
What are the benefits of eBooks?
You can get the information you need immediately
You can easily take them with you on a laptop
You can download them an unlimited number of times
You can print them out
They are copy-paste enabled
They are searchable
There is no password protection
They are lower price than print
They save resources and space
What is an eBook?
Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.
When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.
For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.