The Perfect Windows 10 Installation

Discussion in 'Windows 10' started by haris_mdlf69, Feb 6, 2024.

  1. maargueb

    maargueb MDL Member

    Jun 9, 2019
    220
    35
    10
    #61 maargueb, Apr 5, 2024
    Last edited: Apr 5, 2024
  2. drew84

    drew84 MDL Expert

    Mar 13, 2014
    1,396
    2,376
    60
    @maargueb ... just a suggestion, put all those amazing pictures behind Headed Spoilers (accessed 4th Icon from the right)
    stops users from having to scroll endlessly to get to the next post... apologies (in advance) if this offends anyone...
     
  3. maargueb

    maargueb MDL Member

    Jun 9, 2019
    220
    35
    10
    I used autounattend.xml
     
  4. maargueb

    maargueb MDL Member

    Jun 9, 2019
    220
    35
    10
    I want Add Theme (default theme ) Inside the script specialize.cmd,Thank you for helping me, And your patience is with me

    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes]
    "InstallVisualStyle"="%ResourceDir%\\themes\\Aero 7\\Aero 7.msstyles"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\ThemeManager]
    "DllName"="%ResourceDir%\\themes\\Aero 7\\Aero 7.msstyles"
     
  5. maargueb

    maargueb MDL Member

    Jun 9, 2019
    220
    35
    10
    Hii expert, Help me add this inside specialize.cmd file
    using OOBE.CMD:
    Code:
    ::THEME
    REG QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v ProductName | FINDSTR /i "Ultimate"
    IF NOT ERRORLEVEL 1 GOTO :skiptheme
    ::File Name:
    set themename=custom
    if exist "%SystemRoot%\Resources\Themes\%Custom%.theme" (
    reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes /v InstallTheme /d "%SystemRoot%\Resources\Themes\%Custom%.theme" /f
    reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes /v InstallVisualStyle /d "%SystemRoot%\Resources\Themes\Custom\Custom.msstyles" /f
    )
    :skiptheme
    
    EXIT
    Or

    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
    "ConsentPromptBehaviorAdmin"=dword:00000000
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes]
    "InstallTheme"="C:\\Windows\\resources\\Themes\\Custom.theme"
    "InstallVisualStyle"="%ResourceDir%\\themes\\Custom\\Custom.msstyles"
     
  6. haris_mdlf69

    haris_mdlf69 MDL Addicted

    Oct 23, 2018
    569
    935
    30
    A humble piece of advice: to fully brand your system, I suggest you give this project a try. While 'specialize.cmd' might not guarantee it, this project will fully brand your system.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. maargueb

    maargueb MDL Member

    Jun 9, 2019
    220
    35
    10
    Thank you ,I don't want to use MRp (I don't know how to use it) , I just want to continue working with a script specialize.cmd
     
  8. haris_mdlf69

    haris_mdlf69 MDL Addicted

    Oct 23, 2018
    569
    935
    30
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. maargueb

    maargueb MDL Member

    Jun 9, 2019
    220
    35
    10
    I tried the MRP project on Windows LTSC 2019. I did not like it. I prefer the script method specialize.cmd
     
  10. haris_mdlf69

    haris_mdlf69 MDL Addicted

    Oct 23, 2018
    569
    935
    30
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. maargueb

    maargueb MDL Member

    Jun 9, 2019
    220
    35
    10
    #71 maargueb, Apr 14, 2024
    Last edited: Apr 14, 2024
    I know this sounds stupid,
    Where do I put a file path " $OEM$" : unattend.xml,specialize.cmd,setupcomplete.cmd, inside ISO, The path is correct:
    Code:
    $OEM$/$$/setup/scripts
    -can I add a file " autounattend.xml"
     
  12. haris_mdlf69

    haris_mdlf69 MDL Addicted

    Oct 23, 2018
    569
    935
    30
    Specialize.cmd and SetupComplete.cmd in:
    Code:
    \sources\$OEM$\$$\Setup\Scripts
    unattend.xml in:
    Code:
    \sources\$OEM$\$$\Panther
    You may use the autounattend.xml instead of unattend.xml file, but you need to incorporate the contents of unattend.xml to ensure it works as intended.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. maargueb

    maargueb MDL Member

    Jun 9, 2019
    220
    35
    10
    I want to use your setupcomplete script, but I also want to add some programs such as open-shell, winrar, etc., knowing that I use the setupcomplete script that I wrote below. How can I add these programs?

    @echo off
    "%windir%\Setup\Scripts\Apps\GoogleChromeStandaloneEnterprise64.msi" /qb
    "%windir%\Setup\Scripts\Apps\vlc-3.0.20-win32.exe /L=1036 /S
    "%windir%\Setup\Scripts\
    OpenShellSetup_4_4_191.exe /qn ADDLOCAL=StartMenu
    "%windir%\Setup\Scripts\Apps\winrar-x64-700.exe" /S
    "%windir%\Setup\Scripts\Apps\Revo.exe /verysilent
    "%windir%\Setup\Scripts\Apps\FSViewerSetup78.exe /S
    "%windir%\Setup\Scripts\Apps\Everything.exe /S
    "%windir%\Setup\Scripts\Apps\VisualCppRedist_AIO_x86_x64.exe /ai
    "%windir%\Setup\Scripts\Apps\DirectX_Redist_Repack_x86_x64.exe /ai
    "%windir%\Setup\Scripts\Apps\Rainmeter-4.5.18.exe /L=1036 /S
    regedit /S "%WINDIR%\Setup\Scripts\theme.reg"
    call %~dp0KMS_VL_ALL_AIO.cmd /s /a
    cd \
    (goto) 2>nul&rd /s /q "%~dp0"
    del /q /f "%0"
     
  14. haris_mdlf69

    haris_mdlf69 MDL Addicted

    Oct 23, 2018
    569
    935
    30
    #74 haris_mdlf69, Apr 14, 2024
    Last edited: Apr 15, 2024
    (OP)
    Test this please
    Code:
    @echo off
    call :execute >"%windir%\Setup\Scripts\SetupComplete_log.txt" 2>&1
    exit /b 0
    
    :execute
    :: Disable Tasks
    schtasks /END /TN "Microsoft\Windows\ExploitGuard\ExploitGuard MDM policy Refresh"
    schtasks /END /TN "Microsoft\Windows\Windows Defender\Windows Defender Cache Maintenance"
    schtasks /END /TN "Microsoft\Windows\Windows Defender\Windows Defender Cleanup"
    schtasks /END /TN "Microsoft\Windows\Windows Defender\Windows Defender Scheduled Scan"
    schtasks /END /TN "Microsoft\Windows\Windows Defender\Windows Defender Verification"
    schtasks /Change /TN "Microsoft\Windows\ExploitGuard\ExploitGuard MDM policy Refresh" /Disable
    schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Cache Maintenance" /Disable
    schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Cleanup" /Disable
    schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Scheduled Scan" /Disable
    schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Verification" /Disable
    
    "%windir%\Setup\Scripts\Apps\GoogleChromeStandaloneEnterprise64.msi" /qb
    "%windir%\Setup\Scripts\Apps\vlc-3.0.20-win32.exe /L=1036 /S
    "%windir%\Setup\Scripts\
    OpenShellSetup_4_4_191.exe /qn ADDLOCAL=StartMenu
    "%windir%\Setup\Scripts\Apps\winrar-x64-700.exe" /S
    "%windir%\Setup\Scripts\Apps\Revo.exe /verysilent
    "%windir%\Setup\Scripts\Apps\FSViewerSetup78.exe /S
    "%windir%\Setup\Scripts\Apps\Everything.exe /S
    "%windir%\Setup\Scripts\Apps\VisualCppRedist_AIO_x86_x64.exe /ai
    "%windir%\Setup\Scripts\Apps\DirectX_Redist_Repack_x86_x64.exe /ai
    "%windir%\Setup\Scripts\Apps\Rainmeter-4.5.18.exe /L=1036 /S
    regedit /S "%WINDIR%\Setup\Scripts\theme.reg"
    call %~dp0KMS_VL_ALL_AIO.cmd /s /a
    cd \
    (goto) 2>nul&rd /s /q "%~dp0"
    del /q /f "%0"
    
    
    exit /b
    
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. haris_mdlf69

    haris_mdlf69 MDL Addicted

    Oct 23, 2018
    569
    935
    30
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. haris_mdlf69

    haris_mdlf69 MDL Addicted

    Oct 23, 2018
    569
    935
    30
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. nguyenhuuchinh

    nguyenhuuchinh MDL Novice

    Jun 16, 2020
    6
    1
    0