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

Creating a custom WinPE boot image that has PowerShell enabled

The Windows Assessment and Deployment Kit (Windows ADK) includes a winpe.wim image that creates an environment for working with WinPE images. The WIM file is really a specialized archive that holds all of the files for the Windows operating system. The first is the architecture type of the target image. Thus, we will use amd64 for Nano Server:

  1. First we'll store the location of the PowerShell packages to be installed and the location for the temporary Windows PE media in two PowerShell variables named $WinADK and $WinPETemp. Open Windows PowerShell and run the following:
 $WinADK="C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs" ...

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