O'Reilly logo

Getting Started with Nano Server by Charbel Nemnom

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

PowerShell

We strongly encourage you to use PowerShell if you are not doing so already, please remember Nano Server has been optimized for large deployment whether on-premises or in the public cloud, you will soon find out it's more convenient to use PowerShell instead of clicking next, or finish.

In this step, we will create a Nano Server VM using Windows PowerShell. First, we need to define some variables:

# Variables$vSwitchName01 = "NAT_vSwitch"$InstallRoot = "C:\NanoServer"$VMName = "NanoServerVM01"$NanoServerImage = "C:\NanoServer\NanoServerVM01.vhdx"# Create a new VHD(X) fileNew-VHD -Path ($InstallRoot + "\$VMName\NanoServerVM01_D.vhdx") -SizeBytes 50GB -Dynamic | Out-Null# Create Nano Server VMNew-VM -VHDPath $NanoServerImage -Generation ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required