Book Image

Windows Server 2016 Automation with PowerShell Cookbook - Second Edition

By : Thomas Lee, Ed Goad
Book Image

Windows Server 2016 Automation with PowerShell Cookbook - Second Edition

By: Thomas Lee, Ed Goad

Overview of this book

This book showcases several ways that Windows administrators can use to automate and streamline their job. You'll start with the PowerShell and Windows Server fundamentals, where you'll become well versed with PowerShell and Windows Server features. In the next module, Core Windows Server 2016, you'll implement Nano Server, manage Windows updates, and implement troubleshooting and server inventories. You'll then move on to the Networking module, where you'll manage Windows network services and network shares. The last module covers Azure and DSC, where you will use Azure on PowerShell and DSC to easily maintain Windows servers.
Table of Contents (21 chapters)
Title Page
Credits
About the Author
Acknowledgment
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

Deploying a Nano Server in a VM


Deploying a Nano Server is a simple and customizable process. This recipe focuses on the most straightforward implementation which is deploying a Nano Server in a virtual machine. With Nano Server you have several customization options:

  • Network address: By default, Nano Server uses DHCP to acquire an IP address. You can configure the IP address, subnet, gateway, and DNS both before or after deployment.
  • Domain membership: By default, Nano Server is not domain joined. You can configure domain membership both before or after deployment.

As this book was going to press, Microsoft has announced that, going forward, Nano Server is only available as a container base OS image. Refer to: https://docs.microsoft.com/en-us/windows-server/get-started/nano-in-semi-annual-channel for more information.

Getting ready

You need Windows Server 2016 installation ISO file and a Windows Server 2016 system running Hyper-V (HV1). This recipe assumes the path to the ISO file is D:\iso...