Windows Server 2019 Automation with PowerShell Cookbook - Third Edition

Book Description

Automate Windows server tasks with the powerful features of the PowerShell Language

Key Features

  • Leverage PowerShell to automate complex Windows server tasks
  • Master new features such as DevOps, and containers, and speed up their performance using PowerShell
  • Improve PowerShell's usability, and control and manage Windows-based environments by working through exciting recipes

Book Description

Windows Server 2019 represents the latest version of Microsoft's flagship server operating system. It also comes with PowerShell Version 5.1 and has a number of additional features that IT pros find useful.

The book helps the reader learn how to use PowerShell and manage core roles, features, and services of Windows Server 2019.

You will begin with creating a PowerShell Administrative Environment that has updated versions of PowerShell and the Windows Management Framework, updated versions of the .NET Framework, and third-party modules. Next, you will learn to use PowerShell to set up and configure Windows Server 2019 networking and also managing objects in the AD environment. You will also learn to set up a host to utilize containers and how to deploy containers. You will also be implementing different mechanisms for achieving desired state configuration along with getting well versed with Azure infrastructure and how to setup Virtual Machines, web sites, and shared files on Azure. Finally, you will be using some powerful tools you can use to diagnose and resolve issues with Windows Server 2019.

By the end of the book, you will learn a lot of trips and tricks to automate your windows environment with PowerShell

What you will learn

  • Perform key admin tasks on Windows Server 2019
  • Employing best practices for writing PowerShell scripts and configuring Windows Server 2019
  • Use the .NET Framework to achieve administrative scripting
  • Set up VMs, websites, and shared files on Azure
  • Report system performance using built-in cmdlets and WMI to obtain single measurements
  • Know the tools you can use to diagnose and resolve issues with Windows Server

Who this book is for

If you are a systems administrator, engineer, or an architect working with Windows Server 2016 interested in upgrading to Windows Server 2019 and automating tasks with PowerShell, then this book is for you. A basic knowledge of PowerShell is expected.

Publisher Resources

View/Submit Errata

Table of Contents

  1. Windows Server 2019 Automation with PowerShell Cookbook Third Edition
    1. Table of Contents
    2. Windows Server 2019 Automation with PowerShell Cookbook Third Edition
      1. Why subscribe?
      2. Packt.com
    3. Foreword
    4. Contributors
      1. About the author
      2. About the reviewer
      3. Packt is Searching for Authors Like You
    5. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Getting the most from this book
        1. Conventions used
      5. Sections
        1. Chapter and recipe headings
        2. Getting ready
        3. How to do it…
        4. How it works…
        5. There's more…
        6. See also
      6. Get in touch
        1. Reviews
    6. 1. Establishing a PowerShell Administrative Environment
      1. Introduction
      2. Installing RSAT tools on Window 10 and Windows Server 2019
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      3. Exploring package management
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      4. Exploring PowerShellGet and the PSGallery
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also…
      5. Creating an internal PowerShell repository
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      6. Establishing a code-signing environment
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      7. Implementing Just Enough Administration
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
    7. 2. Managing Windows Networking
      1. Introduction
      2. New ways to do old things
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      3. Configuring IP addressing
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      4. Installing and authorizing a DHCP server
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      5. Configuring DHCP scopes
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      6. Configuring IP addresses from static to DHCP
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      7. Configuring DHCP failover and load balancing
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more
      8. Configuring DNS servers, zones, and resource records
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more…
    8. 3. Managing Windows Active Directory
      1. Introduction
      2. Installing Active Directory with DNS
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      3. Creating and managing AD users, groups, and computers
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      4. Adding users to AD via a CSV file
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      5. Creating a group policy object
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. There's more...
        5. See also
      6. Reporting on AD users
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      7. Finding expired computers and disabled users in AD
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
    9. 4. Managing Windows Storage
      1. Introduction
      2. Managing physical disks and disk volumes
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. There's more...
      3. Managing NTFS permissions
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. There's more...
        5. See also
      4. Managing Storage Replica
        1. Getting ready
        2. How it works…
        3. There's more...
      5. Managing Filestore quotas
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. There's more...
      6. Using filesystem reporting
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. There's more...
    10. 5. Managing Shared Data
      1. Introduction
      2. Setting up and securing an SMB file server
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. There's more...
      3. Creating and securing SMB shares
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. There's more...
        5. See Also
      4. Accessing data on SMB shares
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. There's more...
      5. Creating an iSCSI target
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. There's more...
        5. See Also
      6. Using an iSCSI target
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. There's more...
      7. Configuring a DFS Namespace
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. There's more...
      8. Configuring DFS Replication
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. There's more...
        5. See also….
    11. 6. Managing Windows Update
      1. Introduction
      2. Installing Windows Update Services
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more…
        5. See also
      3. Configuring WSUS update synchronization
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more…
      4. Configuring the Windows Update Client
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more…
      5. Creating computer target groups
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more…
      6. Configuring WSUS automatic approvals
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more…
      7. Managing WSUS updates
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more…
    12. 7. Managing Printing
      1. Introduction
      2. Installing and sharing printers
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. There's more...
      3. Publishing a printer
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. There's more...
      4. Changing the spool directory
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. There's more...
      5. Changing printer drivers
        1. Getting ready
        2. How to do it...
        3. How it works…
      6. Printing a test page
        1. Getting ready
        2. How to do it...
        3. How it works…
      7. Managing printer security
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. There's more...
      8. Creating a printer pool
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. There's more...
    13. 8. Introducing Containers
      1. Introduction
      2. Configuring a container host
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      3. Deploying a hello world sample
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
      4. Deploying IIS in a container
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
      5. Using a Dockerfile to create and use a container
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
    14. 9. Managing Windows Internet Information Server
      1. Introduction
      2. Installing IIS
        1. Getting ready
        2. How to do it…
        3. How it works…
        4. There's more...
      3. Configuring IIS for SSL
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. There's more...
      4. Managing TLS cipher suites
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. There's more...
        5. See also
      5. Configuring a central certificate store
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. There's more...
      6. Configuring IIS bindings
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. There's more...
        5. See also
      7. Managing IIS logging and log files
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. There's more...
        5. See also
      8. Managing IIS applications and application pools
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. There's more...
      9. Analyzing IIS log files
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. There's more...
      10. Managing and monitoring Network Load Balancing
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. There's more...
    15. 10. Managing Desired State Configuration
      1. Introduction
      2. Using DSC and built-in resources
        1. Getting ready
        2. How to do it…
        3. How it works...
        4. There's more...
      3. Parameterizing DSC configuration
        1. Getting ready
        2. How to do it…
        3. How it works...
        4. There's more...
      4. Finding and installing DSC resources
        1. Getting ready
        2. How to do it…
        3. How it works...
        4. There's more...
        5. See also
      5. Using DSC with resources from PS Gallery
        1. Getting ready
        2. How to do it…
        3. How it works...
        4. There's more...
      6. Configuring the DSC local configuration manager
        1. Getting ready
        2. How to do it…
        3. How it works
        4. There's more...
      7. Implementing an SMB DSC pull server
        1. Getting ready
        2. How to do it…
        3. How it works...
        4. There's more...
        5. See also
      8. Implementing a web-based DSC pull server
        1. Getting ready
        2. How to do it…
        3. How it works...
        4. There's more...
      9. Using DSC partial configurations
        1. Getting ready
        2. How to do it…
        3. How it works…
        4. There's more...
    16. 11. Managing Hyper-V
      1. Introduction
      2. Installing and configuring Hyper-V
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
      3. Creating a VM
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      4. Using PowerShell Direct
        1. Getting ready
        2. Getting ready
        3. How to do it...
        4. How it works...
        5. There's more...
      5. Working with VM groups
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
      6. Configuring VM hardware
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      7. Configuring Hyper-V networking
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      8. Implementing nested Hyper-V
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      9. Managing VM state
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      10. Configuring VM and storage movement
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      11. Configuring VM replication
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      12. Managing VM checkpoints
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
    17. 12. Managing Azure
      1. Introduction
      2. Using PowerShell with Azure
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
      3. Creating core Azure resources
        1. Getting ready
        2. How to do it...
        3. How it works…
        4. There's more...
        5. See also
      4. Exploring your storage account
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      5. Creating an Azure SMB file share
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      6. Creating an Azure website
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
      7. Creating an Azure VM
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
        5. See also
    18. 13. Managing Performance and Usage
      1. Introduction
      2. Retrieving performance counters using Get-Counter
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      3. Using WMI to retrieve performance counters
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      4. Creating and using PLA data collector sets
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      5. Reporting on performance data
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      6. Generating a performance-monitoring graph
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      7. Creating a system diagnostic report
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      8. Reporting on printer usage
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      9. Monitoring Hyper-V utilization and performance
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
    19. 14. Troubleshooting Windows Server
      1. Introduction
      2. Checking network connectivity
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      3. Using the Best Practices Analyzer
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      4. Managing event logs
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
    20. Index

Product Information

  • Title: Windows Server 2019 Automation with PowerShell Cookbook - Third Edition
  • Author(s): Thomas Lee
  • Release date: February 2019
  • Publisher(s): Packt Publishing
  • ISBN: 9781789808537