+3 votes
193 views
Configuring images in Windows Server 2012 - Part 1

in Windows Server by (551k points)
reopened | 193 views

1 Answer

+4 votes
Best answer

It is well known that making an installation of an operating system is time consuming, especially when we are talking about a server environment where we must be quite meticulous in the initial configuration and in having the equipment the least amount of time off the air.

For this we can use this tool to save time and have a much more stable installation from the beginning.

What are Windows Images?

It is a format that has Windows to store the operating system in an image, including software that we would need to install after the operating system is installed, this allows us to upload updates released later to the generation of the installation media, drivers and other components that another way they should be downloaded in each server that we install.
The format used for this is WIM (Windows Imaging file format) and it brings us the following benefits:
  • Multiple ways to do deployment, either via DVD, USB, Network, WDS, etc.
  • Updatable, we can manipulate the images before installing to make sure we have all the components up to date, or if we need to modify roles, permits, for this we can assemble the image and modify it according to our requirements.

image



Configuring the image

To achieve configure an image we will use the tool that runs on command line Deployment Image Servicing and Managment (DISM) , with this tool we can manipulate the operating system without installing it so that we can act at our convenience without affecting a equipment that can be productive to us.

The actions that we can execute with this tool are the following:
  • Activate and deactivate roles and characteristics.
  • Add, remove and list system updates
  • Add, remove and list Drivers or System Drivers
  • Add, remove and list Windows Image packages in format. appx
Mounting the image

When mounting the image we associate it with a directory, so that we can browse its directories with either the file explorer or the command console, once mounted we can use Dism.exe to perform the corresponding operations.
A WIM file can contain multiple operating systems, which have different characteristics so we can prepare a range of versions that fit our multiple servers.

Adding Drivers

Once assembled the image we can work on it, one of the most common tasks when working with images is to add Drivers or Drivers, to achieve this we must use the instruction / Add-Driver.
When using this we must specify the path of the file. inf required as many times we must add dozens of drivers or drivers is not efficient to do it one by one, so we have the option to do it recursively using the / recurse parameter which gives us the ability to load all the content of the corresponding folder.

Let's see an example of how to do this:

Dism.exe / image: c: \ mount / Add-Driver / driver: c: \ drivers \ / recurse

Additionally we have two more options, which are:
  • / Get-Driver , this option allows us to list all the drivers added to the image
  • / Remove-Driver , this option allows us to remove any driver that we have added to the image, it is important to note that we can not eliminate any of the drivers that already come in the installation average published by Microsoft, only those added to the image by us they can be removed
With this we finish the first part of our tutorial, in the next installment we will see how to add packages with updates, and how to build the already modified image.

The second part of this tutorial can be found here:
Configuring images in Windows Server 2012 - Part 2

by (3.5m points)
edited

Related questions

+4 votes
1 answer
asked Jun 23, 2019 in Windows Server by backtothefuture (551k points) | 178 views
+4 votes
1 answer
asked Jun 15, 2020 in Windows Server by backtothefuture (551k points) | 777 views
+5 votes
1 answer
asked Jun 23, 2019 in Windows Server by backtothefuture (551k points) | 185 views
+4 votes
1 answer
asked Jun 23, 2019 in Windows Server by backtothefuture (551k points) | 201 views
+4 votes
1 answer
asked Jun 23, 2019 in Windows Server by backtothefuture (551k points) | 194 views
Sponsored articles cost $40 per post. You can contact us via Feedback

Most popular questions within the last 30 days

  1. Cell phone location by number: How easy it is to do it in Latam
10,634 questions
10,766 answers
510 comments
3 users