Windows 10 Imaging, Customization and Deployment

Discussion in 'Windows 10' started by arseny92, Jan 31, 2015.

  1. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,434
    92,337
    340
  2. bigmammapump

    bigmammapump MDL Novice

    Nov 6, 2012
    36
    7
    0
    #1242 bigmammapump, Aug 6, 2024
    Last edited: Aug 6, 2024
    abbodi1406, yes, the target machine's OS is x64 version. But it doesn't boot now because it got out of order for some reason (hasn't been re-installed for years, I suppose it got clogged with garbage, not to mention overloaded hard drive, which was the nail in the coffin as far as I can tell). So I was planning to re-install using the bootable flash card.

    By flash card I mean MMC. I was hoping to use the built-in card reader for that. The laptop's card reader is connected to internal USB port I suppose (I think all built-in readers of this type are).

    Thank you.

    EDIT:
    I can also use a microSD to USB converter to mimic a USB stick instead of using SD card (which may not work, by the way). I was looking to choose "Windows Boot Manager" for the boot source in the BIOS setup.
     
  3. bigmammapump

    bigmammapump MDL Novice

    Nov 6, 2012
    36
    7
    0
    Does anyone know what exactly is being done by Microsoft Media Creation Tool when it creates UEFI bootable USB device? How can we imitate its actions using built-in Windows utilities? This would be nice to know since there seems no way to specify a different ISO for this tool to use other than the one it(!) decided (based on the OS it was launched from): it just downloads some ISO I am not even sure is the one I need (had to cancel).
     
  4. shhnedo

    shhnedo MDL Expert

    Mar 20, 2011
    1,884
    2,528
    60
    #1244 shhnedo, Nov 17, 2024
    Last edited: Nov 17, 2024
    Can anybody point out any mistakes in the following setupcomplete.cmd? I shoved it in a 19041.1 + W10UI latest update iso, there's no "issues" with the iso or the runtimes, my problem is the desktop icons for This PC, User, etc. don't show up after installation.
    Code:
    @ECHO OFF
    PushD "%~dp0"
    
    rem Hibernation OFF
    powercfg -h off
    
    rem Desktop Icons: 0 = Show Icon / 1 = Hide Icon
    rem User's Files
    Reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{59031a47-3f72-44a7-89c5-5595fe6b30ee}" /t REG_DWORD /d 0 /f >nul
    
    rem This PC/My Computer
    Reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{20D04FE0-3AEA-1069-A2D8-08002B30309D}" /t REG_DWORD /d 0 /f >nul
    
    rem Recycle Bin (usually shown by default)
    Reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{645FF040-5081-101B-9F08-00AA002F954E}" /t REG_DWORD /d 0 /f >nul
    
    rem Control Panel
    Reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}" /t REG_DWORD /d 0 /f >nul
    
    rem Network
    Reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}" /t REG_DWORD /d 1 /f >nul
    
    rem Runtimes installtion
    START "" /WAIT "%SystemRoot%\Setup\Runtimes\directx.exe" /ai /gm2
    START "" /WAIT "%SystemRoot%\Setup\Runtimes\visualc.exe" /ai /gm2
    
    rem SetupComplete CleanUp
    Reg Add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\SetupComplete-CleanUp" /ve /t REG_SZ /d "SetupComplete CleanUp" /f 1>NUL
    Reg Add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\SetupComplete-CleanUp" /v "1" /t REG_SZ /d "CMD /c RmDir /s /q \"%SystemRoot%\Setup\Runtimes\"" /f 1>NUL
    Reg Add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\SetupComplete-CleanUp" /v "2" /t REG_SZ /d "CMD /c RmDir /s /q \"%SystemRoot%\Setup\Scripts\"" /f 1>NUL
    
    EXIT
    I took the reg lines from the MRP project.
     
  5. SunLion

    SunLion MDL Addicted

    May 11, 2011
    960
    2,923
    30
    Maybe if you ran it in Runonce it might work.

    I use a reg file for this, which is run after windows has been installed and the desktop has been opened.
     

    Attached Files:

  6. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,434
    92,337
    340
    setupcomplete.cmd runs under system account, registry "HKCU" path point to "HKEY_USERS\S-1-5-18" in this case

    use unattend.xml FirstLogonCommands section
     
  7. shhnedo

    shhnedo MDL Expert

    Mar 20, 2011
    1,884
    2,528
    60
    After some fumbling around with the suggestions, I managed to make it work kinda another way.
    Still inside setupcomplete.cmd :
    Local Machine instead of Current User.
    I imagine that's fine for my purposes?
     
  8. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,434
    92,337
    340
    It depends, if the OS read the settings from machine registry or not
    usually it does, but not for some "modern" UI features in win10 19041 / win11
     
  9. shhnedo

    shhnedo MDL Expert

    Mar 20, 2011
    1,884
    2,528
    60
    I'll keep that in mind. So far, it seems to work ok.
     
  10. Tammy_Robot

    Tammy_Robot MDL Novice

    Nov 22, 2018
    18
    4
    0
    Theoretical question: Is it possible to make dism "portable"? For example, copy dism.exe and all it's dependencies from a newer windows install to an older?

    In other words, if my host system is 21H2 and I want to use dism from 24h2 on my old 21h2 host, is it possible?

    The question is simply, is it possible to do this?
     
  11. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream
    Staff Member

    Dec 21, 2012
    7,040
    8,313
    240
    Dunno about portable, but if you install the ADK from the higher version, that higher DISM usually comes with it.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. Tammy_Robot

    Tammy_Robot MDL Novice

    Nov 22, 2018
    18
    4
    0
    Every time I download the ADK, I get the .1 version of dism in every package. I cd to the Dism directory in \Program Files (x86) and check the version... every download shows Dism version x.1. Maybe I'm doing something wrong or testing the wrong executable?
     
  13. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream
    Staff Member

    Dec 21, 2012
    7,040
    8,313
    240
    DISM sub build number rarely changes, only when actual changes are applied to it. It doesn't simply change for the heck of it. Seeing an older or even .1 DISM version is not unusual. Version information in Windows is a mishmash of build numbers, these days.

    IF there are important changes done to an ADK component, well, new ADK is released.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. phynz

    phynz MDL Novice

    Mar 19, 2025
    49
    13
    0
    I wanted to know how FBConan, the creator of X-Lite OS, compresses the ISO and Windows so much. Is there some trick or how does he do it?
     
  15. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    50,474
    107,162
    450
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. phynz

    phynz MDL Novice

    Mar 19, 2025
    49
    13
    0
  17. liliactr

    liliactr MDL Addicted

    Sep 3, 2009
    646
    248
    30
    Today i searched lots of pages for to find a way to convert swm to wim. Can not you make a very easy tool SWM <> WIM script to select individual indexes or all indexes. When creating swm only to enter size.

    At the end i converted with dism++ Thats the only tool that works good.
     
  18. phynz

    phynz MDL Novice

    Mar 19, 2025
    49
    13
    0
    at the end, how much did the ISO and Windows weigh?
     
  19. liliactr

    liliactr MDL Addicted

    Sep 3, 2009
    646
    248
    30
    I do not remember did not looked. It should not be different. SWM is not a compression method. It only divides wim file to desired size.