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.
Economy: Delivery to most addresses in the US within 10-15 business days
Premium: Trackable Delivery to most addresses in the US within 3-8 business days
UK:
Economy: Delivery to most addresses in the U.K. within 7-9 business days. Shipments are not trackable
Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days! Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands
EU:
Premium: Trackable delivery to most EU destinations within 4-9 business days.
Australia:
Economy: Can deliver to P. O. Boxes and private residences. Trackable service with delivery to addresses in Australia only. Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro Delivery time is up to 15 business days for remote areas of WA, NT & QLD.
Premium: Delivery to addresses in Australia only Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.
India:
Premium: Delivery to most Indian addresses within 5-6 business days
Rest of the World:
Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days
Asia:
Premium: Delivery to most Asian addresses within 5-9 business days
Disclaimer: All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.
Unfortunately, due to several restrictions, we are unable to ship to the following countries:
Afghanistan
American Samoa
Belarus
Brunei Darussalam
Central African Republic
The Democratic Republic of Congo
Eritrea
Guinea-bissau
Iran
Lebanon
Libiya Arab Jamahriya
Somalia
Sudan
Russian Federation
Syrian Arab Republic
Ukraine
Venezuela
What is custom duty/charge?
Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.
Do I have to pay customs charges for the print book order?
The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.
A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.
How do I know my custom duty charges?
The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.
For example:
If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order?
Cancellation Policy for Published Printed Books:
You can cancel any order within 1 hour of placing the order. Simply contact customercare@packt.com with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at customercare@packt.com using the returns and refund process.
Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.
What is your returns and refunds policy?
Return Policy:
We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on customercare@packt.com with the order number and issue details as explained below:
If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on customercare@packt.com within one hour of placing the order and we will replace/refund you the item cost.
Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on customercare@packt.com who will be able to resolve this issue for you.
You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.
On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on customercare@packt.com within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.
What tax is charged?
Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.
What payment methods can I use?
You can pay with the following card types:
Visa Debit
Visa Credit
MasterCard
PayPal
What is the delivery time and cost of print books?
Shipping Details
USA:
'
Economy: Delivery to most addresses in the US within 10-15 business days
Premium: Trackable Delivery to most addresses in the US within 3-8 business days
UK:
Economy: Delivery to most addresses in the U.K. within 7-9 business days. Shipments are not trackable
Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days! Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands
EU:
Premium: Trackable delivery to most EU destinations within 4-9 business days.
Australia:
Economy: Can deliver to P. O. Boxes and private residences. Trackable service with delivery to addresses in Australia only. Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro Delivery time is up to 15 business days for remote areas of WA, NT & QLD.
Premium: Delivery to addresses in Australia only Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.
India:
Premium: Delivery to most Indian addresses within 5-6 business days
Rest of the World:
Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days
Asia:
Premium: Delivery to most Asian addresses within 5-9 business days
Disclaimer: All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.
Unfortunately, due to several restrictions, we are unable to ship to the following countries: