{"id":206,"date":"2018-07-19T22:07:49","date_gmt":"2018-07-19T22:07:49","guid":{"rendered":"http:\/\/107.181.191.134\/?p=206"},"modified":"2018-07-19T22:07:49","modified_gmt":"2018-07-19T22:07:49","slug":"demystifying-dism-to-update-nano-server","status":"publish","type":"post","link":"https:\/\/certcent.io\/index.php\/2018\/07\/19\/demystifying-dism-to-update-nano-server\/","title":{"rendered":"Demystifying DISM to update Nano Server"},"content":{"rendered":"<p>DISM is a great tool to use for scripting updates to WIM or VHDX files.<br \/>\nHere&#8217;s how to get started for VHDX, VHD, or WIM files offline.<br \/>\ndism \/mount-image \/imagefile:boot.vhdx \/mountdir:d:\\mount \/index:1<br \/>\nHere are a few tricks to remembering the syntax, minus using Google, most DISM commands that perform an action or verbs are separated with a hyphen, e.g., mount-image.  The files and directories or nouns  use only a single word, e.g., imagefile:, mountdir:.<br \/>\nFinding the indexes for WIM or install images:<br \/>\ndism \/get-wiminfo \/wimfile:Nanoserver.wim<br \/>\nAdding packages offline to NanoServer.VHDX files:<br \/>\ndism \/mount-image \/mountdir:d:\\mount \/imagefile:nanoserver.vhdx \/index:1 (Mounts the only index of this installed Nano Image.)<br \/>\ndism \/image:d:\\mount \/add-package \/packagepath:d:\\NanoServer\\packages\\Microsoft-NanoServer-Computer-Package.cab (Add this package to that NanoServer install)<br \/>\ndism \/umount-image \/mountdir:d:\\mount \/commit (Writes the changes)<br \/>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>DISM is a great tool to use for scripting updates to WIM or VHDX files. Here&#8217;s how to get started for VHDX, VHD, or WIM files offline. dism \/mount-image \/imagefile:boot.vhdx \/mountdir:d:\\mount \/index:1 Here are a few tricks to remembering the syntax, minus using Google, most DISM commands that perform an action or verbs are separated&hellip; <a class=\"more-link\" href=\"https:\/\/certcent.io\/index.php\/2018\/07\/19\/demystifying-dism-to-update-nano-server\/\">Continue reading <span class=\"screen-reader-text\">Demystifying DISM to update Nano Server<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/certcent.io\/index.php\/wp-json\/wp\/v2\/posts\/206"}],"collection":[{"href":"https:\/\/certcent.io\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/certcent.io\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/certcent.io\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/certcent.io\/index.php\/wp-json\/wp\/v2\/comments?post=206"}],"version-history":[{"count":0,"href":"https:\/\/certcent.io\/index.php\/wp-json\/wp\/v2\/posts\/206\/revisions"}],"wp:attachment":[{"href":"https:\/\/certcent.io\/index.php\/wp-json\/wp\/v2\/media?parent=206"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/certcent.io\/index.php\/wp-json\/wp\/v2\/categories?post=206"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/certcent.io\/index.php\/wp-json\/wp\/v2\/tags?post=206"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}