{"id":886,"date":"2025-06-07T15:52:42","date_gmt":"2025-06-07T20:52:42","guid":{"rendered":"https:\/\/wp.jkhayer.us\/?p=886"},"modified":"2025-06-07T15:52:42","modified_gmt":"2025-06-07T20:52:42","slug":"create-a-custom-windows-iso-with-preinstalled-software","status":"publish","type":"post","link":"https:\/\/wp.jkhayer.us\/?p=886","title":{"rendered":"Create a Custom Windows ISO with Preinstalled Software"},"content":{"rendered":"\n<p>Hello everyone,<br>To run sysprep in windows os 10 or 11 , check for windows update and if you get message You&#8217;re up to date then navigate to C:\\windows\\system32\\sysprep and then right click sysprep application file to run as administraror<br>Then check Generalize in OOBE and select shutdown in System Prepartation Tool 3.14 box .<br>If errors like app removal error, fatal error or unable to validate current windows installation occurs , then I resolved these errors by following steps:-<br>(A) See the error regarding with app removal in c:\\windows\\system32\\sysprep\\panther\\setuperr text file and type commands similar to following examples:-<br>{Error to remove application followed by application name is to be noted.}<br>Commands are shown as an example if errors are occured while removing these applications.<br>Get-AppxPackage -allusers AdobeNotificationClient_3.0.1.1_x86__enpm4xejd91yc | Remove-AppxPackage<br>Get-AppxPackage -allusers AdobeNotificationClient | Remove-AppxPackage -AllUsers<\/p>\n\n\n\n<p>Get-AppxPackage -allusers &#8220;Microsoft.BIngSunshine&#8221; | Remove-AppxPackage -AllUsers<\/p>\n\n\n\n<p>Get-AppxPackage -allusers &#8220;312588en48.BasicPhotoviewer_3.7.2.0._x64_2c5bccghv4cc2 | Remove-AppxPackage<br>Get-AppxPackage -allusers &#8220;312588en48.BasicPhotoviewer | Remove-AppxPackage -AllUsers<\/p>\n\n\n\n<p>Your computer may show different error messages regarding with applications installed in your pc.<\/p>\n\n\n\n<p>(B) Following changes in registry make sysprep to run without errors.<br>Run Regedit as administrator , then navigate to the paths :-<br>1. HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\SoftwareProtectionPlatform<br>Right click SkipRearm , click modify, and change value data to 1.<br>2. HKEY_LOCAL_MACHINE\\SYSTEM\\Setup\\Status\\SysprepStatus<br>Right click GeneralizationState &gt;modify, change value data 7. In the same pane, if CleanupState key is not present then<br>right click New&gt; DWORD(32-bit) Value &gt;CleanupState right click modify change value data to 2.<\/p>\n\n\n\n<p>(C) Run cmd as administrator<br>c:\\windows\\system32 &gt; msdtc -uninstall<br>c:\\windows\\system32 &gt;msdtc -install<br>(D). Then run powershell as administrator and type:-<br>PS C:\\windows\\system32&gt;Get-AppxPackage&nbsp;-AllUsers |&nbsp;Foreach&nbsp;{Add-AppxPackage&nbsp;-DisableDevelopmentMode -Register \u201c$($_.InstallLocation)\\AppXManifest.xml\u201d}<br>Please note colours of the words shown may appear different but highlighted with colour in powershell.(In my pc in powershell , it appeared yellow and symbol $ inside bracket of green colour.)<br>After shutdown, boot from bootable usb of windows 11.<br>Select &gt; repair &gt;troubleshoot&gt;command prompt<br>x:\\sources&gt;c:<br>c:&gt;dir<br>if windows is located on C: then run following command to capture install.wim of current windows.<br>c:\\&gt;dism \/capture-image \/imagefile:X:\\install.wim \/capturedir:C:\\ \/name:win_11<br>(change letters according to your windows installation directory , and destination location to save install.wim )<br>Place this captured install.wim in bootable usb prepared by media creation tool which has install.esd . You get up to date custom bootable usb of windows 11. ( When booted install.wim runs first ,not install.esd)<br>Now when you boot normally from hard disk\/ssd wherefrom we have run sysprep, you have to set some windows installtion settings as if new installation goes on.<br>Have an error free up to date install.wim (captured) of current windows 11 operating system. To add, when installed on any other partition, the data inside C: drive\/partition is also copied to the destination drive\/partition as it is capured by dism \/capture-image command.<br>Thanks for reading.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello everyone,To run sysprep in windows os 10 or 11 , check for windows update and if you get message<\/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-886","post","type-post","status-publish","format-standard","hentry","category-windows"],"_links":{"self":[{"href":"https:\/\/wp.jkhayer.us\/index.php?rest_route=\/wp\/v2\/posts\/886","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.jkhayer.us\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.jkhayer.us\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.jkhayer.us\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.jkhayer.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=886"}],"version-history":[{"count":1,"href":"https:\/\/wp.jkhayer.us\/index.php?rest_route=\/wp\/v2\/posts\/886\/revisions"}],"predecessor-version":[{"id":887,"href":"https:\/\/wp.jkhayer.us\/index.php?rest_route=\/wp\/v2\/posts\/886\/revisions\/887"}],"wp:attachment":[{"href":"https:\/\/wp.jkhayer.us\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=886"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jkhayer.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=886"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jkhayer.us\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=886"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}