---
description: >-
  We are expecting that you know how to create a virtual machine and install a
  Windows client or server. Below is a short manual on how to do so for some
  guidance.
---

# Creating images

## Why create images?

It is way easier to create an updated image with all the updates etc. of an operating system and clone it then to install updates, software on every machine all the time.

## Downloading ISO's

Windows ISO's can be downloaded from the [Microsoft Evaluation Center](https://www.microsoft.com/en-us/evalcenter/evaluate-windows-server). For this lab we will be using the following operating system so please download all four the ISO's under the [Windows](https://www.microsoft.com/en-us/evalcenter/evaluate-windows) and [Windows Server](https://www.microsoft.com/en-us/evalcenter/evaluate-windows-server) category:

* Windows Server 2022
* Windows Server 2019
* Windows 10

## Creating a virtual machine VMware

For this lab we will be creating images which can be used to quickly clone and deploy another server or client. Hopefully you already know how to create a virtual machine in the hypervisor you are using. For demonstration I will show how to create a virtual machine in VMware Workstation.

**I would recommend creating all virtual machine images at the same time!**

1. Open VMware workstation and in the top left click on File --> New Virtual Machine and a pop-up should come up to create a new virtual machine.
2. On the step "What type of configuration you want" select "Typical (recommended)" and click Next.
3. On the step "Guest Operating System Installation" select "Installer disc image file (iso)" and select the Windows Server 2019 ISO. Click Next.
4. On the step "Select guest Operating system" select "Microsoft Windows" and in the dropdown menu select "Windows Server 2019. Click Next.
5. Give the the name "Windows Server 2019 Image" and click Next.
6. Choose the default Disk Size and click Next.
7. Click Finish.

Repeat these steps for each Image we would like to create (Windows Server 2019, 2022 and Windows 10)

## Creating a image

1. Start-up the virtual machine and quickly pres a key to boot to the CD.
2. Make sure the language is set to "English" and the keyboard layout to "US" or your own keyboard layout and click Next.

<div align="left"><img src="https://1033393870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPqGbN7FCY7Xh4OkOtvin%2Fuploads%2Fgit-blob-b673bc557464ec4e700813a7d908b77fdc5bf1cf%2Fafbeelding.png?alt=media" alt=""></div>

3\. Click Install Now.

* When asked to select an operating system select "Windows Server Standard Evaluation (Desktop Experience)" and click Next.

<div align="left"><img src="https://1033393870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPqGbN7FCY7Xh4OkOtvin%2Fuploads%2Fgit-blob-b486090861d4885c548af4c7e42173501c575166%2Fafbeelding.png?alt=media" alt=""></div>

4\. Accept the licene terms and click Next.

<div align="left"><img src="https://1033393870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPqGbN7FCY7Xh4OkOtvin%2Fuploads%2Fgit-blob-822fa63bb89ae2810e1fc1762f7fcc5da079f828%2Fafbeelding.png?alt=media" alt=""></div>

5\. Select "Custom: Install Windows only" and select the disk, click on New and Apply.

<div align="left"><img src="https://1033393870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPqGbN7FCY7Xh4OkOtvin%2Fuploads%2Fgit-blob-98a03731708723e780c59bfc99aa3614f5db53ab%2Fafbeelding.png?alt=media" alt=""></div>

<div align="left"><img src="https://1033393870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPqGbN7FCY7Xh4OkOtvin%2Fuploads%2Fgit-blob-9181a62d4caf89e68737ee6ddc604267c15441eb%2Fafbeelding.png?alt=media" alt=""></div>

6\. Select the Primary Partition and click Next.

<div align="left"><img src="https://1033393870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPqGbN7FCY7Xh4OkOtvin%2Fuploads%2Fgit-blob-58bb546bd741d6fcd895bdbd8409619215feca8e%2Fafbeelding.png?alt=media" alt=""></div>

7\. After the installation finishes the machine will reboot. Make sure you remove the ISO by going to the settings of the machine and disconnecting the CD drive.

8\. Start the VM and go through the installation. For the Image just choose a simple Administrator password which you could remember, such as `Welcome01!.`

9\. Click through next during the installation steps and I would recommend choosing the most privacy friendly settings.

* For Windows 10 select "Domain Join instead" to create a local user account

### Updating

1. Click Start and select the gear Settings Icon.

<div align="left"><img src="https://1033393870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPqGbN7FCY7Xh4OkOtvin%2Fuploads%2Fgit-blob-de2bb506ff67d8ffbcf634e630e4c6a0f4766f97%2Fimage.png?alt=media" alt=""></div>

2\. The Windows Settings menu appears, click on "Update & Security"

<div align="left"><img src="https://1033393870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPqGbN7FCY7Xh4OkOtvin%2Fuploads%2Fgit-blob-e794f4b576b40b691af52b93c44447fc702f4273%2Fimage.png?alt=media" alt=""></div>

3\. Click on "Check for Updates" and install all updates.

<div align="left"><img src="https://1033393870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPqGbN7FCY7Xh4OkOtvin%2Fuploads%2Fgit-blob-8db183f04036a3e040965183d6fb8c242897848f%2Fimage.png?alt=media" alt=""></div>

4\. When the system asks for a reboot, reboot is and repeat till there are no more updates left.

Repeat these steps for each Image we would like to create (Windows Server 2019 and 2022, and Windows 10 and Windows 11)

## Optionally

{% content-ref url="creating-images/optional-install-software-and-settings" %}
[optional-install-software-and-settings](creating-images/optional-install-software-and-settings)
{% endcontent-ref %}

## Cleanup

1. Make sure the downloads folder is empty.

<div align="left"><img src="https://1033393870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPqGbN7FCY7Xh4OkOtvin%2Fuploads%2Fgit-blob-bbf5cf34157ba31d33dd804ac7ad84d812a993cf%2Fimage.png?alt=media" alt=""></div>

1. Empty the recycle bin by rightcliking on it and selecting "Empty Recycle Bin"

<div align="left"><img src="https://1033393870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPqGbN7FCY7Xh4OkOtvin%2Fuploads%2Fgit-blob-acd23355c68cc84483b43d35d2da675944d78f04%2Fimage.png?alt=media" alt=""></div>

1. Open explorer and click on "This PC", right click the C:\ disk and click "Properties".

<div align="left"><img src="https://1033393870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPqGbN7FCY7Xh4OkOtvin%2Fuploads%2Fgit-blob-04b31f40ad2673d10926c24bf6980332c0037624%2Fimage.png?alt=media" alt=""></div>

4\. Click on "Disk Cleanup", "Clean System Files", select everything and Click "OK"

<div align="left"><img src="https://1033393870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPqGbN7FCY7Xh4OkOtvin%2Fuploads%2Fgit-blob-fc0b61c0964ec6377fcf03a25313dd4456a117e1%2Fimage.png?alt=media" alt=""></div>

<div align="left"><img src="https://1033393870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPqGbN7FCY7Xh4OkOtvin%2Fuploads%2Fgit-blob-7421e86f4f1e1d7b37bab2a1670fad8ece4ae783%2Fimage.png?alt=media" alt=""></div>

## Sysprep

To be able to clone the virtual machine without having any problems when joining the same machine to the domain, we have to run sysprep.

1. Press Windows + R, type sysprep and click OK.

<div align="left"><img src="https://1033393870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPqGbN7FCY7Xh4OkOtvin%2Fuploads%2Fgit-blob-fefc5d9a035de6484041000c34c5e6235c8f25ac%2Fimage.png?alt=media" alt=""></div>

2\. Windows Explorer opens and click on the "Sysprep" application.

3\. Select "Generalize", Choose Shutdown and click on "OK"

<div align="left"><img src="https://1033393870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPqGbN7FCY7Xh4OkOtvin%2Fuploads%2Fgit-blob-61084a43335d2219c394f67fec91023ff719ec59%2Fimage.png?alt=media" alt=""></div>

## Finished

When the machine is fully shutdown the image is finished.
