Prerequisites:

	1. Install windows ADK (Windows Assessment and Deployment Kit).
	2. wim OS image in which you would like to add UWP packages.

Process to add UWP apps to wim image:
	
	1. Open the Deployment Tools Command Prompt, installed with the Windows ADK, with administrator privileges. From the Start screen, type Deployment and Imaging Tools Environment, right-click the icon, and select Run as Administrator.
	2. Retrieve the name or index number for the image that you want to modify. For example, type:
		"Dism /Get-ImageInfo /ImageFile:C:\uwpprein\osimage\myimage.wim"
	   An index or name value is required for most operations that specify a WIM file. For a VHD file, you must specify /Index:1.

	3. Mount the offline image for servicing. At the command prompt, type:
		"Dism /Mount-Image /ImageFile:C:\uwpprein\osimage\myimage.wim /Index:1 /mountdir:c:\uwpprein\offline"
	   ImageFile : Source where .wim image is copied
	   Mountdir : Target location where .wim should be mounted.

	4. Adding Display optimization
		Example: Dism /Image:c:\uwpprein\offline /Add-ProvisionedAppxPackage /PackagePath:c:\uwpprein\uwppackage\926715ee0a594fa9bc738f9c7b260922.appx /DependencyPackagePath:c:\uwpprein\uwppackage\Microsoft.VCLibs.140.00.UWPDesktop_14.0.25426.0_arm__8wekyb3d8bbwe.appx /DependencyPackagePath:c:\uwpprein\uwppackage\Microsoft.VCLibs.140.00.UWPDesktop_14.0.25426.0_x64__8wekyb3d8bbwe.appx /DependencyPackagePath:c:\uwpprein\uwppackage\Microsoft.VCLibs.140.00.UWPDesktop_14.0.25426.0_x86__8wekyb3d8bbwe.appx /LicensePath:C:\uwpprein\uwppackage\926715ee0a594fa9bc738f9c7b260922_License1.xml

	5. Adding Perfprofile
		Example: Dism /Image:c:\uwpprein\offline /Add-ProvisionedAppxPackage /PackagePath:c:\uwpprein\uwppackage\ee0ad523f76443be9f7cf778779cd3cf.appx /DependencyPackagePath:c:\uwpprein\uwppackage\Microsoft.VCLibs.140.00.UWPDesktop_14.0.25426.0_arm__8wekyb3d8bbwe.appx /DependencyPackagePath:c:\uwpprein\uwppackage\Microsoft.VCLibs.140.00.UWPDesktop_14.0.25426.0_x64__8wekyb3d8bbwe.appx /DependencyPackagePath:c:\uwpprein\uwppackage\Microsoft.VCLibs.140.00.UWPDesktop_14.0.25426.0_x86__8wekyb3d8bbwe.appx /LicensePath:C:\uwpprein\uwppackage\ee0ad523f76443be9f7cf778779cd3cf_License1.xml
	
	6. Commit the changes and unmount the image.
		
		Dism /Unmount-Image /MountDir:C:\uwpprein\offline /Commit

	7. Now the image is ready with UWP apps installed . Get the image from "C:\uwpprein\osimage\myimage.wim" and deploy the image.