Foreword xiiiIntroduction xxxiiiChapter 1 Setting Up a PowerShell 7 Environment 1What is New in PowerShell 7 2Systems Used in This Book and Chapter 3Installing PowerShell 7 5Installing and Configuring VS Code 14Using the PowerShell Gallery 21Creating a Local PowerShellGet Repository 24Creating a Code-Signing Environment 30Summary 35Chapter 2 PowerShell 7 Compatibility with Windows PowerShell 37Examining PowerShell Modules 38Introducing the Compatibility Solution 48Things That Do Not Work with PowerShell 7 51Summary 54Chapter 3 Managing Active Directory 55Systems Used in This Chapter 58Establishing a Forest Root Domain 60Installing a Replica DC 66Installing a Child Domain 70Configuring a Cross-Forest Trust 75Managing AD Users, Computers, and OUs 86Adding Users to AD via a CSV 96Configuring Just Enough Administration (JEA) 100Summary 109Chapter 4 Managing Networking 111Systems Used in This Chapter 112Configuring IP Addressing 113Testing Network Connectivity 117Installing the DHCP Service 121Configuring DHCP Scopes 124Configuring DHCP Failover 128Configuring the DNS Service 133Configuring DNS Zones and Resource Records 138Summary 144Chapter 5 Managing Storage 145Systems Used in This Chapter 146Managing Disks and Volumes 147Managing NTFS Permissions 154Managing Storage Replica 163Managing Filestore Quotas 175Managing File Screening 183Summary 190Chapter 6 Managing Shared Data 191Systems Used in This Chapter 193Setting Up and Securing an SMB File Server 194Creating and Securing SMB Shares 198Creating and Using an iSCSI Target 207Setting Up a Clustered Scale-Out File Server 218Summary 229Chapter 7 Managing Printing 231Systems Used in This Chapter 232Installing and Sharing Printers 233Publishing a Printer in AD 238Changing the Spool Folder 240Printing a Test Page 245Creating a Printer Pool 248Summary 249Chapter 8 Managing Hyper-V 251Systems Used in This Chapter 253Installing and Configuring Hyper-V 254Creating a Hyper-V VM 257Using PowerShell Direct 262Configuring VM Networking 265Configuring VM Hardware 271Implementing Nested Virtualization 277Using VM Checkpoints 282Using VM Replication 291Managing VM Movement 305Measuring VM Resource Usage 311Summary 314Chapter 9 Using WMI with CIM Cmdlets 315Exploring WMI Namespaces 320Exploring WMI Classes 328Getting Local and Remote Objects 330Invoking WMI Methods 334Managing WMI Events 339Implementing Permanent WMI Event Handling 347Summary 355Chapter 10 Reporting 357Systems Used in This Chapter 358Reporting on AD Users and Computers 359Managing Filesystem Reporting 365Collecting Performance Information Using PLA 374Reporting on PLA Performance Data 379Creating a Performance Monitoring Graph 382Creating a System Diagnostics Report 385Reporting on Printer Usage 387Creating a Hyper-V Status Report 390Reviewing Event Logs 395Summary 402Index 403
THOMAS LEE is an IT consultant/trainer/writer who holds numerous Microsoft certifications. He has been awarded Microsoft's MVP award 17 times. He has written numerous books on TCP/IP and PowerShell. Thomas currently helps clients to deliver training and build training courses. He continues to give back to the community as Group Administrator for the PowerShell forum on Spiceworks, where he is also a Site Moderator.