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.
A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content
How can I cancel my subscription?
To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.
What are credits?
Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.
What happens if an Early Access Course is cancelled?
Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.
Where can I send feedback about an Early Access title?
If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team.
Can I download the code files for Early Access titles?
We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.
When we publish the book, the code files will also be available to download from the Packt website.
How accurate is the publication date?
The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.
How will I know when new chapters are ready?
We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.
I am a Packt subscriber, do I get Early Access?
Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.
How is Early Access delivered?
Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.
How do I buy Early Access content?
Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.
What is Early Access?
Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.