Create WIM from installed system

Discussion in 'Windows 10' started by tavrez, Apr 11, 2018.

  1. freddie-o

    freddie-o MDL Addicted

    Joined:
    Jul 29, 2009
    Messages:
    719
    Likes Received:
    816
    Trophy Points:
    30
    WinPE [Build Your Own]
     
  2. AeonX

    AeonX MDL Addicted

    Joined:
    May 24, 2013
    Messages:
    694
    Likes Received:
    542
    Trophy Points:
    30
    I have tried this exclusion list with Windows 10 LTSC and get sfc errors. Before it worked without problems I think some update has changed that.

    sfc /scannow ends around 26% with errors.

    The list in the Sysprep thread has no problems.
     

    Attached Files:

  3. Enthousiast

    Enthousiast MDL Tester

    Joined:
    Oct 30, 2009
    Messages:
    35,561
    Likes Received:
    59,622
    Trophy Points:
    450
    I recently used this ini (it's dated august 18. 2019)), i got from @abbodi1406 when capturing Enterprise 2019 LTSC (17763.914) from a mapped vm disk:
    Code:
    [ExclusionList]
    \hiberfil.sys
    \pagefile.sys
    \swapfile.sys
    \System Volume Information
    \$Recycle.Bin\*
    \Recycler
    \Recycled
    \Windows\CSC
    \winpepge.sys
    \$windows.~ls
    \$windows.~bt
    \TUPortable
    \Boot
    \Recovery
    \Recovery.txt
    \bootsect.bak
    \ProgramData\Microsoft\Diagnosis\ETLLogs\*
    \ProgramData\Microsoft\Diagnosis\ScenariosSqlStore\*
    \ProgramData\Microsoft\Diagnosis\EventStore.db
    \ProgramData\Microsoft\DiagnosticLogCSP\Collectors\*
    \ProgramData\Microsoft\Network\Downloader\*
    \ProgramData\Microsoft\Search\Data\Applications\Windows\edb*
    \ProgramData\Microsoft\Search\Data\Applications\Windows\Windows.*
    \ProgramData\Microsoft\SmsRouter\MessageStore\edb*
    \ProgramData\Microsoft\Windows\SQM
    \ProgramData\Microsoft\Windows\WER\ReportArchive\*
    \ProgramData\Microsoft\Windows Defender\Support\*
    \ProgramData\Microsoft\Windows Security Health\Logs\*
    \ProgramData\Microsoft\Windows\wfp\*.etl
    \ProgramData\USOShared\Logs\*
    \Users\Administrator
    \Users\*\NTUSER.DAT*.TM.blf
    \Users\*\NTUSER.DAT*.regtrans-ms
    \Users\*\NTUSER.DAT*.log*
    \Users\*\AppData\Local\Microsoft\CLR_v4.0_64\UsageLogs\*
    \Users\*\AppData\Local\Microsoft\CLR_v4.0_32\UsageLogs\*
    \Users\*\AppData\Local\Microsoft\Feeds\*
    \Users\*\AppData\Local\Microsoft\Feeds Cache\*
    \Users\*\AppData\Local\Microsoft\Internet Explorer\*.log
    \Users\*\AppData\Local\Microsoft\Internet Explorer\*.txt
    \Users\*\AppData\Local\Microsoft\Windows\Explorer\*
    \Users\*\AppData\Local\Microsoft\Windows\Explorer\*.etl
    \Users\*\AppData\Local\Microsoft\Windows\INetCache\IE\*
    \Users\*\AppData\Local\Microsoft\Windows\Media Player\*
    \Users\*\AppData\Local\Microsoft\Windows\WebCache\*
    \Users\*\AppData\Local\Microsoft\Terminal Server Client\Cache\*
    \Users\*\AppData\Local\Temp\*
    \Users\*\AppData\Local\Icon*
    \Windows\AppCompat\Programs\Amcache.hve*.TM.blf
    \Windows\AppCompat\Programs\Amcache.hve*.regtrans-ms
    \Windows\AppCompat\Programs\Amcache.hve*.log*
    \Windows\CSC
    \Windows\Debug\*
    \Windows\inf\*.etl
    \Windows\inf\*.ev*
    \Windows\inf\*.log
    \Windows\Logs\CBS\*
    \Windows\Logs\DISM
    \Windows\Logs\DPX
    \Windows\Logs\dosvc\*
    \Windows\Logs\NetSetup
    \Windows\Logs\waasmedic\*
    \Windows\Logs\WindowsUpdate\*
    \Windows\Logs\PBR
    \Windows\Logs\*.log
    \Windows\Microsoft.NET\Framework\v2.0.50727\*.log
    \Windows\Microsoft.NET\Framework\v4.0.30319\*.log
    \Windows\Microsoft.NET\Framework64\v2.0.50727\*.log
    \Windows\Microsoft.NET\Framework64\v4.0.30319\*.log
    \Windows\Panther\*.etl
    \Windows\Panther\*.log
    \Windows\Panther\FastCleanup
    \Windows\Panther\img
    \Windows\Panther\Licenses
    \Windows\Panther\MigLog*.xml
    \Windows\Panther\Resources
    \Windows\Panther\Rollback
    \Windows\Panther\Setup*
    \Windows\Panther\UnattendGC
    \Windows\Panther\upgradematrix
    \Windows\Prefetch\*
    \Windows\security\database\*.chk
    \Windows\security\database\*.log
    \Windows\security\database\*.jrs
    \Windows\security\logs\*
    ;\Windows\ServiceProfiles\LocalService\AppData\Local\FontCache-FontFace.dat
    \Windows\ServiceProfiles\LocalService\AppData\Local\FontCache-S-1-5-21*.dat
    \Windows\ServiceProfiles\LocalService\AppData\Local\FontCache\*
    \Windows\ServiceProfiles\LocalService\NTUSER.DAT*.TM.blf
    \Windows\ServiceProfiles\LocalService\NTUSER.DAT*.regtrans-ms
    \Windows\ServiceProfiles\LocalService\NTUSER.DAT*.log*
    \Windows\ServiceProfiles\NetworkService\NTUSER.DAT*.TM.blf
    \Windows\ServiceProfiles\NetworkService\NTUSER.DAT*.regtrans-ms
    \Windows\ServiceProfiles\NetworkService\NTUSER.DAT*.log*
    \Windows\servicing\Packages\wuindex.xml
    \Windows\servicing\Sessions\*_*.xml
    \Windows\servicing\Sessions\Sessions.back.xml
    \Windows\SoftwareDistribution
    \Windows\System32\catroot2\*.txt
    \Windows\System32\catroot2\*.chk
    \Windows\System32\catroot2\*.log
    \Windows\System32\catroot2\*.jrs
    \Windows\System32\config\*.TM.blf
    \Windows\System32\config\*.regtrans-ms
    \Windows\System32\config\*.log*
    \Windows\System32\config\RegBack\*
    \Windows\System32\config\systemprofile\*.TM.blf
    \Windows\System32\config\systemprofile\*.regtrans-ms
    \Windows\System32\config\systemprofile\*.log*
    \Windows\System32\config\TxR\*.blf
    \Windows\System32\config\TxR\*.regtrans-ms
    \Windows\System32\CodeIntegrity\bootcat.cache
    \Windows\System32\LogFiles\AIT\*
    \Windows\System32\LogFiles\Scm\*
    \Windows\System32\LogFiles\SQM\*
    \Windows\System32\LogFiles\WMI\*.etl*
    \Windows\System32\LogFiles\WMI\RtBackup\*.etl
    \Windows\System32\SleepStudy\*.etl
    \Windows\System32\SleepStudy\ScreenOn\*.etl
    \Windows\System32\SMI\Store\Machine\SCHEMA.DAT*.TM.blf
    \Windows\System32\SMI\Store\Machine\SCHEMA.DAT*.regtrans-ms
    \Windows\System32\SMI\Store\Machine\SCHEMA.DAT*.log*
    \Windows\System32\sru\*.txt
    \Windows\System32\sru\*.chk
    \Windows\System32\sru\*.log
    \Windows\System32\sru\*.jrs
    \Windows\System32\Sysprep\Panther
    \Windows\System32\Sysprep\Sysprep_succeeded.tag
    \Windows\System32\wdi\LogFiles\*
    \Windows\System32\wfp\*.etl
    \Windows\System32\winevt\Logs\*
    \Windows\System32\winevt\TraceFormat\*
    \Windows\Temp\*
    \Windows\WinSxS\Backup
    \Windows\WinSxS\ManifestCache\*
    \Windows\WinSxS\Temp\*
    \Windows\*.log
    
    [CompressionExclusionList]
    *.mp3
    *.zip
    *.cab
    *.wmv
    *.wma
    *.wim
    *.esd
    *.swm
    *.dvr-ms
    \windows\inf\*.pnf
    *.rar
    *.7z
    
     
  4. AeonX

    AeonX MDL Addicted

    Joined:
    May 24, 2013
    Messages:
    694
    Likes Received:
    542
    Trophy Points:
    30
    I added printscreen and CBS.log to my post.

    Thank you, I will try this.
     
  5. Enthousiast

    Enthousiast MDL Tester

    Joined:
    Oct 30, 2009
    Messages:
    35,561
    Likes Received:
    59,622
    Trophy Points:
    450
    When you run this commandline, it will filter out the sfc errors:
    Code:
    findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log >"%userprofile%\Desktop\sfcdetails.txt"
    
    or did you already?
     
  6. AeonX

    AeonX MDL Addicted

    Joined:
    May 24, 2013
    Messages:
    694
    Likes Received:
    542
    Trophy Points:
    30
    When I do this no error appears so I posted the whole log.
     
  7. Enthousiast

    Enthousiast MDL Tester

    Joined:
    Oct 30, 2009
    Messages:
    35,561
    Likes Received:
    59,622
    Trophy Points:
    450
    I noticed that when i ran it on your cbs.log:)
     
  8. AeonX

    AeonX MDL Addicted

    Joined:
    May 24, 2013
    Messages:
    694
    Likes Received:
    542
    Trophy Points:
    30
    Same thing :(
     

    Attached Files:

  9. Enthousiast

    Enthousiast MDL Tester

    Joined:
    Oct 30, 2009
    Messages:
    35,561
    Likes Received:
    59,622
    Trophy Points:
    450
    Installing the 2019 LTSC i've captured using that ini file:)

    Will run sfc /scannow on it.
     
  10. Enthousiast

    Enthousiast MDL Tester

    Joined:
    Oct 30, 2009
    Messages:
    35,561
    Likes Received:
    59,622
    Trophy Points:
    450
  11. AeonX

    AeonX MDL Addicted

    Joined:
    May 24, 2013
    Messages:
    694
    Likes Received:
    542
    Trophy Points:
    30
  12. Enthousiast

    Enthousiast MDL Tester

    Joined:
    Oct 30, 2009
    Messages:
    35,561
    Likes Received:
    59,622
    Trophy Points:
    450
    I also used the 17763.1 base iso and W10UI_7.5 to offline integrate the current updates + dotnetfx3:
    Code:
        Windows10.0-KB4486153-x86_Dotnetfx48.cab
        Windows10.0-KB4486169-x86_Dotnet48_NL_LP.cab
        Windows10.0-KB4516115-x86_Flash.cab
        Windows10.0-KB4523204-x86_SSU_850.cab
        windows10.0-kb4524761-x86_DU_Sources.cab
        Windows10.0-KB4530715-x86_PSFX_914.cab
        Windows10.0-KB4533001-x86-NDP48_CU_10.0.1.3068.cab
    It was a dutch image, that's why i've used the dutch dotnetfx48 LP.

    Used the full resetbase option in W10UI_7.5.

    Next i installed it in audit mode in VMWare and i online installed directx9c, sysprepped and captured it using gimagex (lazy) with the exclusion ini by @abbodi1406 :D
     
  13. AeonX

    AeonX MDL Addicted

    Joined:
    May 24, 2013
    Messages:
    694
    Likes Received:
    542
    Trophy Points:
    30
    Same thing here though I didn't integrate Flash updates, dotnetfx48 LP nor dynamic updates. I copied the Windows ADK 1809 files to a folder and pointed it there in the W10UI script. I think I have the same problem with captured Windows 8.1 but I need to test again to confirm.
     
  14. AeonX

    AeonX MDL Addicted

    Joined:
    May 24, 2013
    Messages:
    694
    Likes Received:
    542
    Trophy Points:
    30
    Which version of Dism did you use to integrate? Was it the native Windows or Windows ADK?
     
  15. Enthousiast

    Enthousiast MDL Tester

    Joined:
    Oct 30, 2009
    Messages:
    35,561
    Likes Received:
    59,622
    Trophy Points:
    450
  16. abbodi1406

    abbodi1406 MDL KB0000001

    Joined:
    Feb 19, 2011
    Messages:
    12,067
    Likes Received:
    55,424
    Trophy Points:
    340
    @AeonX
    Code:
    (F) STATUS_OBJECT_NAME_NOT_FOUND #10316674# '\SystemRoot\WinSxS\amd64_microsoft-windows-com-dtc-runtime_31bf3856ad364e35_10.0.17763.1_none_0a18eccab82c677e\MSDTC.LOG'
    i did not exclude that :)

    @Enthousiast
    updated filter command :)
    Code:
    findstr /i /c:"[SR] Cannot" %windir%\Logs\CBS\CBS.log >"%userprofile%\Desktop\sfcdetails.txt"
    findstr /i /c:"(F) STATUS" %windir%\Logs\CBS\CBS.log >>"%userprofile%\Desktop\sfcdetails.txt"
     
  17. Enthousiast

    Enthousiast MDL Tester

    Joined:
    Oct 30, 2009
    Messages:
    35,561
    Likes Received:
    59,622
    Trophy Points:
    450
  18. AeonX

    AeonX MDL Addicted

    Joined:
    May 24, 2013
    Messages:
    694
    Likes Received:
    542
    Trophy Points:
    30
    @Enthousiast @abbodi1406

    I don't know why I have this problem I will create another image using ADK 18362 but solved by deleting the following line:
    Code:
    \Windows\*.log
    And I replaced it with the following lines taken from the old wimscript.ini:
    Code:
    \Windows\comsetup.log
    \Windows\DtcInstall.log
    \Windows\lsasetup.log
    \Windows\PFRO.log
    \Windows\setupact.log
    \Windows\setuperr.log
    \Windows\TSSysprep.log.log
    \Windows\vmgcoinstall.log
    Is \Windows\TSSysprep.log.log a typo?

    it looks like \Windows\*.log is interpreted as all .log files in all subfolders of \Windows
     
  19. zbigniew59

    zbigniew59 MDL Member

    Joined:
    May 14, 2016
    Messages:
    130
    Likes Received:
    39
    Trophy Points:
    10
    #59 zbigniew59, Feb 15, 2020
    Last edited: Feb 15, 2020
    :confused:Create WIM with the system installed.
    I don't mean a copy of the system, but wim or esd FOR CREATING ISO - which can be customized on other computers.
    I am asking for a few simple steps.
     
  20. Enthousiast

    Enthousiast MDL Tester

    Joined:
    Oct 30, 2009
    Messages:
    35,561
    Likes Received:
    59,622
    Trophy Points:
    450