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,273
    91,154
    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,837
    2,447
    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
    791
    2,192
    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,273
    91,154
    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,837
    2,447
    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,273
    91,154
    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,837
    2,447
    60
    I'll keep that in mind. So far, it seems to work ok.