Quickstart: Prepare your lab environment

In this quickstart, you prepare the technician PC to then install a basic Windows IoT Enterprise image onto a reference device sample. At the end of this quickstart, you have a technician PC ready to start building Windows IoT Enterprise images, and a reference device sample with Windows IoT Enterprise installed.

The lab environment created during this exercise is used in the successor quickstarts:

In this series of quickstarts, you can opt by using a Virtual Machine as your reference device sample. In a true development or production environment, you would start by choosing a Physical Device that meets the Minimum System Requirements for Windows IoT Enterprise.

Tip

You can also use the lab environment created during this exercise, to complete other tutorials under Customization, Optimization and Deployment.

Prerequisites

To prepare your technician PC (your work PC), you need:

To prepare your reference device sample, you need:

Create a bootable Windows IoT Enterprise installation media

The typical way to install Windows in a physical device is to create a bootable USB flash drive, and then copy the Windows installation files onto the flash drive. Once you have the files on the flash drive, you can insert it into the device and boot from the flash drive. To learn more, see Install Windows from a USB flash drive.

Follow these steps to prepare the installation flash drive:

  1. Insert a flash drive into your Technician PC.

  2. Open Command Prompt with Administrator privileges and run diskpart:

    diskpart
    
  3. Use diskpart to list the disks so you can identify the flash drive:

    list disk
    

    You should see something like:

    Disk ###  Status         Size     Free     Dyn  Gpt
    --------  -------------  -------  -------  ---  ---
    Disk 0    Online          238  GB     0 B        *
    Disk 1    Online          8192 MB     0 B      
    

    In this example, Disk 1 is our flash drive, because the size represents the size of the flash drive that we're using.

  4. When you identify the disk number of your flash drive, use diskpart to prepare the drive so you can use it as a bootable installation drive:

    Warning

    The following commands will erase everything on the flash drive.

    Enter the following commands from within diskpart, where Disk 1 is the flash drive:

    Select disk 1
    clean
    create partition primary
    select partition 1
    active
    Format fs=fat32 quick
    assign
    exit
    
  5. Mount the Windows IoT Enterprise ISO on your Technician PC by double clicking the ISO and copy the entire contents onto the root of the flash drive. You can use File explorer to manually copy the files.

Boot the device to Windows Setup:

  1. Move the USB flash drive from the technician PC to the powered down physical device.
  2. Turn on your physical device and enter the device's boot menu. Your device has a specific button combination or keyboard key to press to get to the boot menu. You might need to consult your hardware documentation if you aren't familiar with how to get to your device's boot menu.
  3. From the boot menu, select the flash drive to boot from. Your device boots from the flash drive and enter into the Windows Setup.

Install Windows IoT Enterprise on your reference device sample

This section covers how to install Windows IoT Enterprise on your reference device sample using Windows Setup. The steps apply to both physical device and virtual machine.

Tip

We recommend not having your device connected to any network during Windows Setup. Network connectivity could cause it to come out of the deferred activation state.

Install Windows with Windows Setup:

  1. Step through the Windows Setup menus, providing the requested information. Choose the settings, such as language, time and currency, and keyboard options that apply to your device and proceed to the next screen.

  2. Select Install Windows 11.

  3. On the Activate Windows screen, insert a valid product key. This screen doesn't show if you're using an evaluation or volume license edition.

  4. On the Applicable notices and license terms screen, select Accept if you agree with the terms.

  5. On the Select location to install Windows 11 screen, if the device has existing partitions, we recommend deleting the partitions so you have a single block on unallocated space to start from, then select Next to start the installation.

  6. Your device restarts a couple of times during the operating system installation. Wait until the device enters Out Of Box Experience (OOBE) and is showing a screen that says Is this the right country or region?.

    Important

    When at the Is this the right country or region? OOBE screen don't continue the setup as you will need to enter Audit mode at this point. In the event that you started the setup of an account by mistake, you can open Command Prompt with Administrator privileges and run C:\Windows\System32\Sysprep\sysprep.exe /audit to enter Audit mode and continue the steps.

    Screenshot that shows the region and country OOBE screen.

Enter Audit Mode

Windows is installed on your reference device sample and you have a basic image that's ready to be customized in Audit mode.

  1. From the first OOBE screen that says Is this the right country or region?, use the Ctrl+Shift+F3 combination on your keyboard to enter Audit mode.

  2. Your device should restart in Audit mode. You know you're in Audit mode when you see a System Preparation Tool window.

  3. Every time you reboot the system you see the System Preparation Tool, also called Sysprep. Sysprep can be hidden behind the start screen, so you might need to minimize the start screen to see it. Select Cancel on the System Preparation Tool to close it.

    Screenshot of Audit Mode screen showing System Preparation Tool.

    Tip

    If you're in Audit mode and a password-protected screen saver starts, you can't log back on to the system. The built-in administrator account that's used to log on to Audit mode is immediately disabled after logon. Disable the screen saver by either changing the power plan in the Settings app, or configure and deploy a custom plan. For more information, see Create a Custom Power Plan.

Next step