Over the last while I’ve put together a module called DeployImage with the goal to try and simplify some of the needs in deploying a WindowsIMage file.  

In particular my goal was to make NanoServer in it’s current state an easily deployable option for the average IT Pro.

So this weekend I did quite a bit of playing about with Nano and getting a fully deployed Nano server online. 

I won Smile

Deploying Nano Server is no different than and other WIM file.   The problem you must compensate for is it is headless environment.

This means you should plan to have certain tasks already done within the server without actually touching it.   Things like

  • Assigning a Static IP address
  • Naming the workstation
  • Joining it to a Domain

Now in truth I COULD do most of this through PowerShell remotely once I use WinRM and adding it to TrustedHosts.   But I prefer to have the system up and running and done in a more fully automated fashion.

Within the DeployImage module I added a cmdlet to obfuscate the creation of the XML file you need.   To create an unattend.xml file you can use the following Cmdlet

New-UnattendXMLContent -Computername Contoso-Nano1 -Timezone ‘Eastern Standard Time’ -Owner ‘Contoso’ -Organization ‘Contoso’ -AdminPassword ‘P@ssw0rd’

This will generate the XML content for a Computer with the following specs

Name             : Contoso-Nano1
TimeZone      : Eastern Standard Time
Owner            : Contoso
Organization : Contoso
Password       : P@ssw0rd

(The Password referred to is the Default Administrator account)


# Create the Unattend.xml file
$XMLContent=New-UnattendXMLContent -Computername Contoso-Nano1 -Timezone ‘Eastern Standard Time’ -Owner ‘Contoso’ -Organization ‘Contoso’ -AdminPassword ‘P@ssw0rd’
New-Item -ItemType File -Name Unattend.xml -Force | Out-Null
Add-content Unattend.xml -Value $XMLContent

At this point you’ll need to copy the Unattend.xml file into the Destination file structure under C:\Windows\system32\sysprep

Pop in tomorrow and we’ll look at configuring the IP address and Joining it to a Domain.

The Energized Tech