Mastering Windows Server 2016 Hyper-V

(Romina) #1
    -AdministratorPassword  $adminPass  `
-DomainName savilltech -ReuseDomainNode `
-UnattendPath .\unattend.xml

The key components of this example are shown in Table 5.1.


Table 5.1: New-NanoServerImage Key Parameters


PARAMETER MEANING
-MediaPath Location of the Windows Server 2016 media
-BasePath Temporary folder used while creating the image
-TargetPath Location for the created file
-ComputerName Name of the Nano Server instance
-DeploymentType Guest for a Hyper-V VM, which adds the necessary
Hyper-V guest drivers and components (Microsoft-
NanoServer-Guest-Package), while Host adds drivers
for a physical deployment (Microsoft-NanoServer-
Host-Package)
-Edition Standard or Datacenter
-AdministratorPassword Password for the local Administrator account
-DomainName Name of domain to join. -ReuseDomainNode uses an
existing domain object with the same name, which is
useful if replacing an existing deployment.
-UnattendPath An unattend.xml file with additional configurations
-Storage -Defender -
EnableRemoteManagementPort

Adds    the file    server  role    and other   storage components,
Windows Defender antimalware, and enables WinRM
remote management

The output NanoServerVM.vhd file can be used by a VM, and it will start without
further configuration. Moreover, even though it has to perform the specialization
phase of the OS setup, it will still start in a couple of seconds.


If creating a Nano Server image for a physical deployment as a Hyper-V host, the -
DeploymentType Guest would be replaced with -DeploymentType Host. Additionally,
the -OEMDrivers parameter would add the standard network adapter and storage
controller drivers included in Server Core, -Compute would add the Hyper-V role, and -
Clustering would add the Failover Clustering feature.


NANO SERVER MANAGEMENT


The mantra of Windows Server is always to manage remotely—even if it has the
graphical interface and management tools locally. This is accomplished by installing
the Remote Server Administration Tools (RSAT) on the client-equivalent operating
system; that is, Windows 10 for Windows Server 2016. The Windows 10 RSAT can be

Free download pdf