Labels

Monday, 26 January 2015

Configure Windows Images

          Hi friends here we are illustrating to configure or modify the windows images using the amazing tool i.e. Deployment Image Servicing and Management (DISM.exe) is a new command line tool that you can use to service a Windows image. The DISM tool replaces the Package Manager (pkgmgr.exe), PEimg, and Intlcfg tools used with Windows Vista. DISM consolidates the functionality found in those three tools, as well as delivers new functionality to improve the experience of offline servicing.

You can use DISM to:
DISM can be used to service Windows Vista with Service Pack 1 (SP1) and Windows Server 2008. When used with Windows 7 and Windows Server 2008 R2, you get the added functionality.
Add, remove, and enumerate packages and drivers.
Enable or disable Windows features.
Apply changes based on the offline servicing section of an unattend.xml answer file.
Upgrade a Windows image to a different edition.
Prepare a Windows PE image.
Take advantage of better logging.

Apply patches.

Command-Line Options 
To service a Windows image offline, it must be applied or mounted. WIM images can be mounted using the Windows Image (WIM) commands within DISM, or applied and recaptured using ImageX.
You can also use commands to list the indexes or verify the architecture for the image you are mounting. After you update the image, you must unmount it and either commit or discard the changes you have made.
The base syntax for nearly all DISM commands is the same. After you have mounted your Windows image, you can specify any DISM options, the servicing command that will update your image, and the location of the mounted image. You can use only one servicing command per command line. If you are servicing a running computer, you can use the /online option instead of specifying the location of the mounted Windows Image.
The base syntax for DISM is:
DISM.exe {/image:<
path_to_image> | /online} [dism_options] {servicing_command} [<servicing_argument>] 

Illustration  - Applying Windows Updates,Adding Roles and features and Adding drivers Using DISM.
  • Open internet explorer and type http://catalog.update.microsoft.com
  • When prompted, install the Microsoft Update Catalog add-in.
  • In the Search box, type KB2756872 and click Search.
  • Click Add next to Update For Windows Server 2012 (KB2756872)
  • Click View Basket. In the Updates In Your Basket page, shown in Figure 1-24, click Download.
  • In the Download Options page, navigate to c:\Updates, click OK, and click Continue. When the update completes downloading, click Close.
  • Use File Explorer to copy the Install.wim file from the sources directory of the Windows Server 2012 installation media to the C:\Images folder.
  • Open an elevated command prompt by opening the Search charm, typing cmd, right-clicking command prompt, and then clicking Run as Administrator.
  • Execute the following command to identify the index number of the Standard Server installation: Dism.exe /get-wiminfo /wimfile:c:\images\install.wim
  • Execute the following command to mount the Standard Edition server image located in Install.wim using the C:\Mount folder: Dism.exe /mount-image /imagefile:c:\images\install.wim /index:2 /mountdir:c:\mount (it will take few minutes)
  • Execute the following command to apply the software update you downloaded from the Microsoft Update Catalog web page:
  • Dism.exe /image:c:\mount /Add-Package /PackagePath:"c:\updates\Update for Windows Server 2012 (KB2756872)"
  • Execute the following command to enable the .NET Framework 3.5 features using the mounted installation media as the source location: Dism.exe /image:c:\mount /Enable-Feature /all /FeatureName:NetFx3 /Source:d:\sources\sxs
  • Execute the following command to dismount and commit the modified image:
  • Dism.exe /Unmount-Wim /MountDir:c:\mount /commit.
We have successfully applied updates on offline image using DISM.






No comments:

Post a Comment