Skip to content
Tech Shizz Logo

An Engineers Blog

  • TechShizz
  • blog

Installing Nano Servers

Posted on February 23, 2021 By rich No Comments on Installing Nano Servers

To install a Nano server we need the Server 2016 ISO mounted and attached to the HV Host. we then run a series of PowerShell commands to installed the Nano Server.

#Import Nano server PS Module
Import-Module D:NanoServerNanoServerImageGenerator
#Create a basic NanoServer VHDX
New-NanoServerImage -MediaPath D: -BasePath .Base -TargetPath .NanoServer1.vhdx -DeploymentType Guest -Edition Datacenter -ComputerName NanoServer1 -AdministratorPassword (ConvertToSecureString -String 'Pa$$w0rd' -AsPlainText -Force)
#Create and Start the VM
New-VM -Name NanoServer1 -VHDPath .NanoServer1.vhdx -MemoryStartupBytes 1GB -Generation 2 | Start-VM
#Begin Remote PowerShell session
Enter-PSSession -VMName NanoServer1

We can run the following to create a Nano Server with features already installed

#Import Nano server PS Module
Import-Module D:NanoServerNanoServerImageGenerator
#Create a NanoServer VHDX
New-NanoServerImage -MediaPath D: -BasePath .Base -TargetPath .NanoServer1.vhdx -DeploymentType Guest -Edition Datacenter -ComputerName NanoServer1 -InterfaceNameOrIndex Ethernet -Ipv4Address 192.168.16.10 -Ipv4SubnetMask 255.255.255.0 -Ipv4Gateway 192.168.16.1 -Ipv4Dns ("192.168.16.100","8.8.8.8") -Package Microsoft-NanoServer-IIS-Package -AdministratorPassword (ConvertToSecureString -String 'Pa$$w0rd' -AsPlainText -Force)
#View available packages
Get-NanoServerPackage -MediaPath D:
#create and start the VM
New-VM - Name NanoServer1 -VHDPath .NanoServer1.vhdx -MemoryStartupByte 1GB -SwitchName vSwitch -Generatino 2 | Start-VM
#Start remote PS Session
Enter-PSSession -NMName NanoServer1

 

Remember, there is a GUI tool for this that can be downloaded at https://www.microsoft.com/en-us/download/details.aspx?id=54065

 

 

 

Post navigation

❮ Previous Post: Using PowerShell to Add Drivers / Packages / Install Roles and Features in a .wim file
Next Post: Windows Store is missing in Windows 10 ❯

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors

Subscribe to our newsletter!

Recent Posts

  • How to implement a lightning-fast ransomware playbook
  • How to achieve defence in depth in your business
  • How to implement a SecOps team phishing response plan
  • How to block an Office 365 Sign-in correctly
  • Microsoft finally patched serious Exchange 0-day over a month old!

Recent Comments

    Archives

    • November 2022
    • July 2021
    • March 2021
    • February 2021

    Categories

    • Cyber Security
    • Uncategorized

    Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org

    Copyright © 2023 .

    Theme: Oceanly News Dark by ScriptsTown