{"id":25,"date":"2017-12-26T06:46:03","date_gmt":"2017-12-26T06:46:03","guid":{"rendered":"https:\/\/www.laptoparena.net\/blog\/?p=25"},"modified":"2017-12-26T06:46:03","modified_gmt":"2017-12-26T06:46:03","slug":"create-a-wim-image-of-windows-installation","status":"publish","type":"post","link":"https:\/\/www.laptoparena.net\/blog\/create-a-wim-image-of-windows-installation\/","title":{"rendered":"Create a wim image of windows installation"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">Boot a Windows PE image by dvd, usb or network.<\/span><br style=\"font-weight: 400;\" \/><br style=\"font-weight: 400;\" \/><span style=\"font-weight: 400;\">You will end up with a cmd prompt :<\/span><br style=\"font-weight: 400;\" \/><span style=\"font-weight: 400;\">X:\\windows\\system32\\&gt;wpeinit<\/span><br style=\"font-weight: 400;\" \/><br style=\"font-weight: 400;\" \/><span style=\"font-weight: 400;\">IF you want to work with a network location instead of a USB drive or local hdd you can map it with:<\/span><br style=\"font-weight: 400;\" \/><strong>net use n: \\\\networkpc\\sharename passwords \/user:username<\/strong><span style=\"font-weight: 400;\">View partitions :<\/span><br style=\"font-weight: 400;\" \/><span style=\"font-weight: 400;\">diskpart<\/span><br style=\"font-weight: 400;\" \/><span style=\"font-weight: 400;\">list volume<\/span><br style=\"font-weight: 400;\" \/><span style=\"font-weight: 400;\">exit<\/span><br style=\"font-weight: 400;\" \/><br style=\"font-weight: 400;\" \/><strong>For windows 7 :<\/strong><br style=\"font-weight: 400;\" \/><span style=\"font-weight: 400;\">f:\\imagex.exe \/capture d: f:\\mywin_c.wim &#8220;Win_Vol&#8221;<\/span><br style=\"font-weight: 400;\" \/><span style=\"font-weight: 400;\">and optional :\u00a0<\/span><br style=\"font-weight: 400;\" \/><span style=\"font-weight: 400;\">f:\\imagex.exe \/capture e: f:\\mywin_d.wim &#8220;Data_Vol&#8221;\u00a0<\/span><br style=\"font-weight: 400;\" \/><br style=\"font-weight: 400;\" \/><br style=\"font-weight: 400;\" \/><span style=\"font-weight: 400;\">To restore them on another pc, boot pe image :<\/span><br style=\"font-weight: 400;\" \/><span style=\"font-weight: 400;\">First to make the partition we will use a file :\u00a0<\/span><br style=\"font-weight: 400;\" \/><br style=\"font-weight: 400;\" \/><span style=\"font-weight: 400;\">X:\\windows\\system32\\&gt;diskpart \/s diskpart.txt<\/span><br style=\"font-weight: 400;\" \/><br style=\"font-weight: 400;\" \/><br style=\"font-weight: 400;\" \/><strong>diskpart.txt :<\/strong><br style=\"font-weight: 400;\" \/><br style=\"font-weight: 400;\" \/><span style=\"font-weight: 400;\">Select disk 0<\/span><br style=\"font-weight: 400;\" \/><span style=\"font-weight: 400;\">Clean<\/span><br style=\"font-weight: 400;\" \/><span style=\"font-weight: 400;\">Create partition primary size=81920<\/span><br style=\"font-weight: 400;\" \/><span style=\"font-weight: 400;\">Select partition 1<\/span><br style=\"font-weight: 400;\" \/><span style=\"font-weight: 400;\">assign letter=c<\/span><br style=\"font-weight: 400;\" \/><span style=\"font-weight: 400;\">active<\/span><br style=\"font-weight: 400;\" \/><span style=\"font-weight: 400;\">Format fs=ntfs quick<\/span><br style=\"font-weight: 400;\" \/><span style=\"font-weight: 400;\">Create partition primary<\/span><br style=\"font-weight: 400;\" \/><span style=\"font-weight: 400;\">Select partition 2<\/span><br style=\"font-weight: 400;\" \/><span style=\"font-weight: 400;\">assign letter=d<\/span><br style=\"font-weight: 400;\" \/><span style=\"font-weight: 400;\">Format fs=ntfs quick<\/span><br style=\"font-weight: 400;\" \/><span style=\"font-weight: 400;\">Exit<\/span><br style=\"font-weight: 400;\" \/><br style=\"font-weight: 400;\" \/><br style=\"font-weight: 400;\" \/><span style=\"font-weight: 400;\">X:\\windows\\system32\\&gt;F:<\/span><br style=\"font-weight: 400;\" \/><br style=\"font-weight: 400;\" \/><span style=\"font-weight: 400;\">F:&gt;imagex.exe \/apply f:\\xt3215pos7.wim1 d:<\/span><br style=\"font-weight: 400;\" \/><span style=\"font-weight: 400;\">F:&gt;imagex.exe \/apply f:\\xt3215pos7_d.wim1 e:<\/span><br style=\"font-weight: 400;\" \/><br style=\"font-weight: 400;\" \/><span style=\"font-weight: 400;\">bcdboot c:\\windows<\/span><br style=\"font-weight: 400;\" \/><br style=\"font-weight: 400;\" \/><\/p>\n<h3>For windows 8 or 8.1 you have to use\u00a0<strong>DISM<\/strong><\/h3>\n<p style=\"font-weight: 400;\">\nDism \/Capture-Image \/ImageFile:F:\\mywin_SR.wim\u00a0 \/CaptureDir:C:\\ \/Name:&#8221;System Reserved&#8221;<\/p>\n<p>Dism \/Capture-Image \/ImageFile:F:\\mywin_c.wim\u00a0 \/CaptureDir:D:\\ \/Name:&#8221;Win_Vol&#8221;<br \/>\nDism \/Capture-Image \/ImageFile:F:\\mywin_c.wim\u00a0 \/CaptureDir:E:\\ \/Name:&#8221;Data_Vol&#8221;<\/p>\n<p>to apply image :<\/p>\n<p>Dism \/apply-image \/imagefile=n:\\SPACERI34160\\mywin_c.wim \/index:1\u00a0 \/ApplyDir:D:\\<br \/>\nDism \/apply-image \/imagefile=n:\\SPACERI34160\\mywin_d.wim \/index:1 \/ApplyDir:E:\\<\/p>\n<p>bcdboot C:\\Windows \/l en-US<br \/>\n&#8212;&#8212;&#8212;&#8212;-<br \/>\nErrors :<\/p>\n<p>dism \/Capture-Image<br \/>\nThe capture-image option is unknown &#8211; you need to run winpe 5.1<\/p>\n<p>Imagex Error 112 There Is Not Enough Space On The Disk error &#8211; you probably are saving the image to a usb stick that is formatted with fat32 that has a file limit of 4gb &#8211; format the usb to NTFS<\/p>\n<p>While capturing a windows 8 or windows 8.1 with imagex you get a lot of warnings and it takes a long time (around 45 min) to make the image.<br \/>\n[ INFO ] Ignoring Extended Attributes in [c:\\Program Files\\xxxxxxx]<br \/>\nTo capture a windows 8 or 8.1 installation you have to use<strong>\u00a0dism<\/strong>\u00a0with win pe 5.1 as imagex does not know to read and\/or restore the Extended Attributes form windows 8<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p>To automate more :<br \/>\nEdit \/sources\/boot.wim\/windows\/system32\/startnet.cmd :<\/p>\n<p>wpeinit<\/p>\n<p>d:<br \/>\ndiskpart \/s diskpart.txt<br \/>\nImagex.exe \/apply KS6815posrdyEB31.wim 1 c:<\/p>\n<p>Exit<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Boot a Windows PE image by dvd, usb or network.You will end up with a cmd prompt :X:\\windows\\system32\\&gt;wpeinitIF you want to work with a network location instead of a USB drive or local hdd you can map it with:net use n: \\\\networkpc\\sharename passwords \/user:usernameView partitions :diskpartlist volumeexitFor windows 7 :f:\\imagex.exe \/capture d: f:\\mywin_c.wim &#8220;Win_Vol&#8221;and optional &#8230; <a title=\"Create a wim image of windows installation\" class=\"read-more\" href=\"https:\/\/www.laptoparena.net\/blog\/create-a-wim-image-of-windows-installation\/\" aria-label=\"Read more about Create a wim image of windows installation\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-25","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.laptoparena.net\/blog\/wp-json\/wp\/v2\/posts\/25","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.laptoparena.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.laptoparena.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.laptoparena.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.laptoparena.net\/blog\/wp-json\/wp\/v2\/comments?post=25"}],"version-history":[{"count":1,"href":"https:\/\/www.laptoparena.net\/blog\/wp-json\/wp\/v2\/posts\/25\/revisions"}],"predecessor-version":[{"id":26,"href":"https:\/\/www.laptoparena.net\/blog\/wp-json\/wp\/v2\/posts\/25\/revisions\/26"}],"wp:attachment":[{"href":"https:\/\/www.laptoparena.net\/blog\/wp-json\/wp\/v2\/media?parent=25"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.laptoparena.net\/blog\/wp-json\/wp\/v2\/categories?post=25"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.laptoparena.net\/blog\/wp-json\/wp\/v2\/tags?post=25"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}