Create a new Nano Server image with 2016 RTM

Create a Nano Server image with Windows Server 2016 RTM.

John Savill

November 5, 2016

1 Min Read
Create a new Nano Server image with 2016 RTM

Q. What are the commands to create a new Nano Server image using Windows Server 2016 RTM?

A. The PowerShell below creates a new Generation 1 (VHD) disk to be used with Hyper-V. In this example I add Storage, DSC, Windows Defender and add remote management support. It is deployed as Standard edition SKU. It is also joining a domain using an existing AD account.

$adminPass = ConvertTo-SecureString "Pa55word" -AsPlainText -Force$NanoVHDPath = ".NanoServerVM.vhd"import-module D:NanoBuildNanoServerImageGenerator.psm1New-NanoServerImage -MediaPath 'S:OS ImagesWindows Server 2016 RTMExpanded' `-BasePath .Base -TargetPath $NanoVHDPath -ComputerName NanoVM `-DeploymentType Guest -Edition Standard `-Storage -Defender -EnableRemoteManagementPort `-Package Microsoft-NanoServer-DSC-Package `-UnattendPath .unattend.xml `-AdministratorPassword $adminPass -DomainName savilltech -ReuseDomainNode

 

About the Author(s)

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.