Book Image

Windows Server Automation with PowerShell Cookbook - Fourth Edition

By : Thomas Lee
Book Image

Windows Server Automation with PowerShell Cookbook - Fourth Edition

By: Thomas Lee

Overview of this book

With a foreword from PowerShell creator Jeffrey Snover, this heavily updated edition is designed to help you learn how to use PowerShell 7.1 effectively and manage the core roles, features, and services of Windows Server in an enterprise setting. All scripts are compatible with both Window Server 2022 and 2019. This latest edition equips you with over 100 recipes you'll need in day-to-day work, covering a wide range of fundamental and more advanced use cases. We look at how to install and configure PowerShell 7.1, along with useful new features and optimizations, and how the PowerShell compatibility solution bridges the gap to older versions of PowerShell. Topics include using PowerShell to manage networking and DHCP in Windows Server, objects in Active Directory, Hyper-V, and Azure. Debugging is crucial, so the book shows you how to use some powerful tools to diagnose and resolve issues with Windows Server.
Table of Contents (18 chapters)
Other Books You May Enjoy

Managing filesystems

To make use of a "disk" device, whether a spinning disk, CD/DVD device, or a solid-state device, you must format that device/drive with a filesystem. In Windows, in addition to allowing you to specify which specific filesystem to use, you can also give the partition a drive letter and filesystem label while formatting the drive.

In most cases, you use NTFS as your filesystem of choice. It is robust and reliable and provides efficient access control as well as providing encryption and compression. ReFS might be a good choice for some specialized workloads, particularly on a physical Hyper-V host where you might use the ReFS filesystem on disks you use to hold your VMs' virtual hard drives. For interoperability with things like video and still cameras, you may need to use the FAT, FAT32, or exFAT filesystems.

For more details on the difference between NTFS, FAT, FAT32, and ExFAT filesystems, see