abbodi1406's Batch Scripts Repo

Discussion in 'Scripting' started by abbodi1406, May 4, 2017.

  1. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,177
    84,597
    340
    @Paul Mercer
    does it cause any installation issue?
     
  2. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,324
    2,895
    60
    Снимок экрана 2024-02-09 171225.jpg

    no, it installs fine

    it's just weird because only ServerStandard is affected, datacenter is fine
    but MetadataESD_ServerStandard_ru-ru.esd has correct name so something is wrong on the uup-converter side
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,177
    84,597
    340
    A debug log can help :D
     
  4. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,324
    2,895
    60
    here it is
    it's not so critical so no need to fix if it's not obvious what's wrong there
     

    Attached Files:

    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Dark Dinosaur

    Dark Dinosaur X Æ A-12

    Feb 2, 2011
    3,718
    5,149
    120
    I try to understand how it works.
    I see that you convert cabs to esd &
    I see you export esd to another wim file with --ref param
    can you tell me what it does? and how does it apply to the esd files?

    Code:
    wimlib-imagex.exe export "C:\Users\Administrator\Desktop\26052.1000_amd64_en-us_serverstandardcore_0d194f13_convert\UUPs\MetadataESD_ServerStandardCore_en-us.esd" 3 ISOFOLDER\sources\install.wim --ref="C:\Users\Administrator\Desktop\26052.1000_amd64_en-us_serverstandardcore_0d194f13_convert\UUPs\*.esd"
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    3,686
    2,650
    120
    #2806 acer-5100, Feb 9, 2024
    Last edited: Feb 9, 2024
    Did you try an older version of wimlib?

    Maybe there is a regression related to this to this

    https://wimlib.net/forums/viewtopic.php?t=675
     
  7. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,324
    2,895
    60
    I'm using current 1.14.3 version
    just tried it on 1.12.0 ver and it's the same, it can't read or write russian symbols, it looks like ╨┐╨▓╨┐╤Л╨┐╤Ж╤Л
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,177
    84,597
    340
    I don't think it's wimlib issue

    MS imagex.exe is used to read info from esd file
    and hacky "chcp 65001 & cmd.exe /u /c type" is used to save it to a variable, which is used by wimlib

    but like you said, it's weird that ServerStandard is affected, but Datacenter is fine
     
  9. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,324
    2,895
    60
    #2809 Paul Mercer, Feb 9, 2024
    Last edited: Feb 9, 2024
    I'll test it again with uup-converter v100
    included wimlib is 1.14.1, so I'll try both 1.14.1 and 1.14.3

    edit: no luck here
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,177
    84,597
    340
    #2810 abbodi1406, Feb 9, 2024
    Last edited: Feb 9, 2024
    (OP)
    uup-converter v100

    - Implemented new way to disable console's "QuickEdit Mode" without relaunch or registry change (thanks to @Windows_Addict, awuctl, ave9858/may for help)
    the fix is invoked via Windows Powershell
    it will be always applied for Host OS Windows builds 10586 and later, regardless QuickEdit state
    on previous Windows builds, it is applied only if QuickEdit is enabled

    - Updated APAP.exe/Microsoft.Dism.dll (mainly to handle "Adding Apps" failures and correctly close dism session)

    this still doesn't fix the 26040+ RPC-failed issue on some host OS

    - "DisableUpdatingUpgrade" option will be auto enabled for builds 26000+ (until further notice)
    you can set it to 2 to force switch OFF

    - Support to add Edge.wim (you can enable "SkipEdge" option to skip it)

    thanks for testing @Enthousiast, @Paul Mercer, @steven4554, @Clusterhead, @TS2008



    esd-decrypter v65

    - Updated ISO label for latest ESDs.
    - Implemented "QuickEdit Mode" disable fix as above
     
  11. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,177
    84,597
    340
    If possible, create debug mode for ServerDatacenter
    it might help to see why it's different

    --

    i made a quick test
    saved the original NAME/DESCRIPTION from here to a text file as UTF-8 (same used by imagex.exe)
    then used "chcp 65001 & cmd.exe /u /c type" to type the text file to new file as Unicode

    the NAME changed to
    Code:
    <NAME>Windows Server 2025 Standard (возм��жности рабочего стола)</NAME>
    DESCRIPTION is not changed

    so that's caused it
    but why only name affected? and why changed different letter than your test?

    --
    Edit:
    i made new test, but changed the order and moved NAME line below DESCRIPTION line
    now both are preserved without change
     
  12. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,324
    2,895
    60
    I guess it's not needed anymore

    it was also always fine with the other Server builds (20348 for example), maybe it's just a glitch with the 26052 build
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,177
    84,597
    340
    #2813 abbodi1406, Feb 9, 2024
    Last edited: Feb 9, 2024
    (OP)
    Nevertheless, here's updated script with a workaround (might not work), if you want
     
  14. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,324
    2,895
    60
    it got so much worse :p
    Code:
            <NAME>Windows Server 2025 ServerStandard</NAME>
            <DESCRIPTION>Windows Server 2025 ServerStandard</DESCRIPTION>
            <DISPLAYNAME>Windows Server 2025 Standard (╨▓╨╛╨╖╨╝╨╛╨╢╨╜╨╛╤Б╤В╨╕ ╤А╨░╨▒╨╛╤З╨╡╨│╨╛ ╤Б╤В╨╛╨╗╨░)</DISPLAYNAME>
            <DISPLAYDESCRIPTION>Этот параметр позволяет установить всю графическую среду Windows, которая занимает дополнительное пространство на диске. Этот параметр удобен, если вы хотите использовать рабочий стол Windows или у вас есть приложение для рабочего стола.</DISPLAYDESCRIPTION>
    Code:
            <NAME>Windows Server 2025 ServerDatacenter</NAME>
            <DESCRIPTION>Windows Server 2025 ServerDatacenter</DESCRIPTION>
            <DISPLAYNAME>Windows Server 2025 Datacenter (╨▓╨╛╨╖╨╝╨╛╨╢╨╜╨╛╤Б╤В╨╕ ╤А╨░╨▒╨╛╤З╨╡╨│╨╛ ╤Б╤В╨╛╨╗╨░)</DISPLAYNAME>
            <DISPLAYDESCRIPTION>Этот параметр позволяет установить всю графическую среду Windows, которая занимает дополнительное пространство на диске. Этот параметр удобен, если вы хотите использовать рабочий стол Windows или у вас есть приложение для рабочего стола.</DISPLAYDESCRIPTION>
    now Datacenter is affected as well + it's not just a single symbol
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,177
    84,597
    340
    Discarded :biggrin:
     
  16. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,324
    2,895
    60
    #2816 Paul Mercer, Feb 9, 2024
    Last edited: Feb 10, 2024
    how to disable suppressed DISM cleanup output in uup-converter and W10UI?
    it takes too much time to cleanup 26052.1100 Pro edition, I'm even thinking something is wrong with it and I would like to see the output

    edit: yep cleanup got stuck for a 3 hours and then I dropped it
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,177
    84,597
    340
    replace all instances with nothing
    Code:
    %_Nul8%
    did you check the logs? dism itself stuck?
     
  18. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,324
    2,895
    60
    #2818 Paul Mercer, Feb 10, 2024
    Last edited: Feb 10, 2024
    thanks, it's stuck at 5% after 3 seconds of cleanup

    Code:
    === Running UUP Converter v100 ===
    
    === Checking UUP Info . . .
    
    === Configured Options . . .
    
    AutoStart 1
    AddUpdates 1
    Cleanup
    ResetBase
    LCUwinre
    DisableUpdatingUpgrade
    NetFx3
    UpdtBootFiles
    
    === Parsing Apps CompDB . . .
    
    === Preparing Reference ESDs . . .
    
    Containers-Dynamic-Image-FoD-Package-amd64
    HyperV-OptionalFeature-VirtualMachinePlatform-Client-Disabled-FOD-Package-amd64
    Microsoft-OneCore-ApplicationModel-Sync-Desktop-FOD-Package-amd64
    Microsoft-OneCore-DirectX-Database-FOD-Package-amd64
    Microsoft-Windows-DirectoryServices-ADAM-Client-FOD-Package-amd64
    Microsoft-Windows-DirectoryServices-ADAM-Client-FOD-Package-wow64
    Microsoft-Windows-EnterpriseClientSync-Host-FOD-Package-amd64
    Microsoft-Windows-EnterpriseClientSync-Host-FOD-Package-wow64
    Microsoft-Windows-Ethernet-Client-Intel-E1i68x64-FOD-Package-amd64
    Microsoft-Windows-Ethernet-Client-Intel-E2f68-FOD-Package-amd64
    Microsoft-Windows-Ethernet-Client-Realtek-Rtcx21x64-FOD-Package-amd64
    Microsoft-Windows-Ethernet-Client-Vmware-Vmxnet3-FOD-Package-amd64
    Microsoft-Windows-FoDMetadata-Package
    Microsoft-Windows-Hello-Face-Package-amd64
    Microsoft-Windows-InternetExplorer-Optional-Package-amd64
    Microsoft-Windows-Kernel-LA57-FoD-Package-amd64
    Microsoft-Windows-LanguageFeatures-Basic-en-us-Package-amd64
    Microsoft-Windows-LanguageFeatures-Basic-ru-ru-Package-amd64
    Microsoft-Windows-LanguageFeatures-Handwriting-ru-ru-Package-amd64
    Microsoft-Windows-LanguageFeatures-OCR-en-us-Package-amd64
    Microsoft-Windows-LanguageFeatures-OCR-ru-ru-Package-amd64
    Microsoft-Windows-LanguageFeatures-TextToSpeech-ru-ru-Package-amd64
    Microsoft-Windows-MediaPlayer-Package-amd64
    Microsoft-Windows-MediaPlayer-Package-wow64
    Microsoft-Windows-Notepad-System-FoD-Package-amd64
    Microsoft-Windows-Notepad-System-FoD-Package-wow64
    Microsoft-Windows-PowerShell-ISE-FOD-Package-amd64
    Microsoft-Windows-PowerShell-ISE-FOD-Package-wow64
    Microsoft-Windows-Printing-PMCPPC-FoD-Package-amd64
    Microsoft-Windows-ProjFS-OptionalFeature-FOD-Package-amd64
    Microsoft-Windows-SenseClient-Fod-Package-amd64
    Microsoft-Windows-SimpleTCP-FOD-Package-amd64
    Microsoft-Windows-SmbDirect-FOD-Package-amd64
    Microsoft-Windows-StepsRecorder-Package-amd64
    Microsoft-Windows-StepsRecorder-Package-wow64
    Microsoft-Windows-TabletPCMath-Package-amd64
    Microsoft-Windows-Telnet-Client-FOD-Package-amd64
    Microsoft-Windows-TerminalServices-AppServer-Client-FOD-Package-amd64
    Microsoft-Windows-TerminalServices-AppServer-Client-FOD-Package-wow64
    Microsoft-Windows-TFTP-Client-FOD-Package-amd64
    Microsoft-Windows-VBSCRIPT-FoD-Package-amd64
    Microsoft-Windows-VBSCRIPT-FoD-Package-wow64
    Microsoft-Windows-Wallpaper-Content-Extended-FoD-Package-amd64
    Microsoft-Windows-Wifi-Client-Broadcom-Bcmpciedhd63-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Broadcom-Bcmwl63a-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Broadcom-Bcmwl63al-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Intel-Netwbw02-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Intel-Netwew00-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Intel-Netwew01-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Intel-Netwlv64-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Intel-Netwns64-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Intel-Netwsw00-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Intel-Netwtw02-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Intel-Netwtw04-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Intel-Netwtw06-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Intel-Netwtw08-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Intel-Netwtw10-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Marvel-Mrvlpcie8897-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Qualcomm-Athw8x-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Qualcomm-Athwnx-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Qualcomm-Qcamain10x64-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Ralink-Netr28x-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Realtek-Rtl8192se-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Realtek-Rtwlane-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Realtek-Rtwlane01-FOD-Package-amd64
    Microsoft-Windows-Wifi-Client-Realtek-Rtwlane13-FOD-Package-amd64
    Microsoft-Windows-WinOcr-FOD-Package-amd64
    Microsoft-Windows-WinOcr-FOD-Package-wow64
    Microsoft-Windows-WMIC-FoD-Package-amd64
    Microsoft-Windows-WMIC-FoD-Package-wow64
    OpenSSH-Client-Package-amd64
    
    === Creating Setup Media Layout . . .
    
    === Creating install.wim . . .
    
    Using LZX compression with 8 threads
    Archiving file data: 7084 MiB of 7084 MiB (100%) done
    
    === Updating install.wim / 1 image{s} . . .
    
    1/2: Windows11.0-KB5035384-x64.msu [Combined UUP]
    2/2: Windows10.0-KB5035430-x64_inout.cab [SSU]
    
    === Servicing Index: 1
    
    Deployment Image Servicing and Management tool
    Version: 10.0.25398.1
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    === Adding Microsoft Edge . . .
    
    Deployment Image Servicing and Management tool
    Version: 10.0.25398.1
    
    Image Version: 10.0.26052.1000
    
    The operation completed successfully.
    
    === Adding Apps . . .
    
    Microsoft.NET.Native.Framework.x64.2.2
    Microsoft.NET.Native.Runtime.x64.2.2
    Microsoft.Services.Store.Engagement.x64
    Microsoft.UI.Xaml.x64.2.7
    Microsoft.UI.Xaml.x64.2.8
    Microsoft.VCLibs.x64.14.00
    Microsoft.VCLibs.x64.14.00.Desktop
    Microsoft.WindowsAppRuntime.x64.1.3
    Microsoft.WindowsStore_8wekyb3d8bbwe
    Microsoft.StorePurchaseApp_8wekyb3d8bbwe
    Microsoft.BingNews_8wekyb3d8bbwe
    Microsoft.BingSearch_8wekyb3d8bbwe
    Microsoft.BingWeather_8wekyb3d8bbwe
    Microsoft.MicrosoftSolitaireCollection_8wekyb3d8bbwe
    Microsoft.ZuneMusic_8wekyb3d8bbwe
    Microsoft.WindowsAlarms_8wekyb3d8bbwe
    Microsoft.ApplicationCompatibilityEnhancements_8wekyb3d8bbwe
    Microsoft.WindowsCalculator_8wekyb3d8bbwe
    Microsoft.WindowsNotepad_8wekyb3d8bbwe
    Microsoft.WindowsTerminal_8wekyb3d8bbwe
    Microsoft.WindowsFeedbackHub_8wekyb3d8bbwe
    Microsoft.GetHelp_8wekyb3d8bbwe
    Microsoft.WindowsSoundRecorder_8wekyb3d8bbwe
    Microsoft.MicrosoftOfficeHub_8wekyb3d8bbwe
    Microsoft.ScreenSketch_8wekyb3d8bbwe
    Microsoft.MicrosoftStickyNotes_8wekyb3d8bbwe
    Microsoft.Todos_8wekyb3d8bbwe
    Microsoft.XboxSpeechToTextOverlay_8wekyb3d8bbwe
    Microsoft.GamingApp_8wekyb3d8bbwe
    Microsoft.XboxGamingOverlay_8wekyb3d8bbwe
    Microsoft.XboxIdentityProvider_8wekyb3d8bbwe
    Microsoft.Xbox.TCUI_8wekyb3d8bbwe
    Microsoft.Windows.Photos_8wekyb3d8bbwe
    Microsoft.PowerAutomateDesktop_8wekyb3d8bbwe
    Microsoft.WindowsCamera_8wekyb3d8bbwe
    Microsoft.DesktopAppInstaller_8wekyb3d8bbwe
    Microsoft.Paint_8wekyb3d8bbwe
    Microsoft.WebMediaExtensions_8wekyb3d8bbwe
    Microsoft.RawImageExtension_8wekyb3d8bbwe
    Microsoft.HEIFImageExtension_8wekyb3d8bbwe
    Microsoft.HEVCVideoExtension_8wekyb3d8bbwe
    Microsoft.VP9VideoExtensions_8wekyb3d8bbwe
    Microsoft.AV1VideoExtension_8wekyb3d8bbwe
    Microsoft.AVCEncoderVideoExtension_8wekyb3d8bbwe
    Microsoft.MPEG2VideoExtension_8wekyb3d8bbwe
    Microsoft.WebpImageExtension_8wekyb3d8bbwe
    MicrosoftWindows.Client.WebExperience_cw5n1h2txyewy
    MicrosoftWindows.CrossDevice_cw5n1h2txyewy
    Microsoft.SecHealthUI_8wekyb3d8bbwe
    Clipchamp.Clipchamp_yxz26nhyzhsrt
    MicrosoftCorporationII.QuickAssist_8wekyb3d8bbwe
    Microsoft.OutlookForWindows_8wekyb3d8bbwe
    MicrosoftTeams_8wekyb3d8bbwe
    Microsoft.Windows.DevHome_8wekyb3d8bbwe
    Microsoft.YourPhone_8wekyb3d8bbwe
    MicrosoftCorporationII.MicrosoftFamily_8wekyb3d8bbwe
    
    Deployment Image Servicing and Management tool
    Version: 10.0.25398.1
    
    Saving image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    === Adding Updates . . .
    
    Deployment Image Servicing and Management tool
    Version: 10.0.25398.1
    
    Image Version: 10.0.26052.1000
    
    Processing 1 of 1 - Adding package Package_for_ServicingStack_1100~31bf3856ad364e35~amd64~~26052.1100.1.1
    [==========================100.0%==========================]
    The changes due to package Package_for_ServicingStack_1100 requires the current servicing session to be reloaded.
    All the packages will be processed again.
    The operation completed successfully.
    
    === Adding LCU Windows11.0-KB5035384-x64.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.25398.1
    
    Image Version: 10.0.26052.1000
    
    Processing 1 of 1 -
    [==========================100.0%==========================]
    [==========================100.0%==========================] The operation completed successfully.
    
    === Running DISM Cleanup . . .
    
    Deployment Image Servicing and Management tool
    Version: 10.0.25398.1
    
    Image Version: 10.0.26052.1100
    
    [==                         5.0%                           ]

    cleanup without the resetbase isn't working too

    on build 26016.1012 cleanup works fine, and it's just one progress bar, so no need to suppress it anymore
     

    Attached Files:

    • dism.7z
      File size:
      76.2 KB
      Views:
      14
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  19. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,177
    84,597
    340
    I blame TurboStack
     
  20. 正义羊

    正义羊 MDL Senior Member

    Feb 21, 2016
    255
    147
    10
    @abbodi1406 , In UUP-converter v100:

    Code:
    === Adding Microsoft Edge . . .
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.2792
    
    Image Version: 10.0.26052.1000
    
    The operation completed successfully.
    
    === Adding Apps . . .
    
    Microsoft.NET.Native.Framework.x64.2.2
    Microsoft.NET.Native.Runtime.x64.2.2
    Microsoft.Services.Store.Engagement.x64
    Microsoft.UI.Xaml.x64.2.7
    Microsoft.UI.Xaml.x64.2.8
    Microsoft.VCLibs.x64.14.00
    Microsoft.VCLibs.x64.14.00.Desktop
    Microsoft.WindowsAppRuntime.x64.1.3
    Microsoft.WindowsStore_8wekyb3d8bbwe
    远程过程调用失败。
    I've tried several times and I'm getting this issue. There are no problems with the steps before and after this step:

    The remote procedure call failed.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...