abbodi1406's Batch Scripts Repo

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

  1. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,209
    90,791
    340
    It's not a typo
    quotation marks this way are set / preserved within the variable, therefore no need to surround the later expanded variable with " marks

    thabks for the suggestion about custom apps list
     
  2. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,748
    3,575
    60
    I know that set var = value without quotes for strings causes problems.
    So I always did set "var=value".

    I even thought that if it is not a typing error,
    set "var=value"
    or
    set var="value"
    It could be the same thing.

    But as you said they are things for different uses, I didn't get it right.

    I used the translator, but did not translate well. Can you explain in another way?

    Grateful!
     
  3. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,209
    90,791
    340
    Code:
    set "var=value"
    echo %var%
    echo "%var%"
    output:
    Code:
    value
    "value"
    -
    Code:
    set var="value"
    echo %var%
    output:
    Code:
    "value"
    -
    Code:
    set "var="value""
    echo %var%
    output:
    Code:
    "value"
     
  4. nima1024

    nima1024 MDL Member

    Sep 18, 2010
    240
    42
    10
    #1904 nima1024, May 17, 2022
    Last edited: May 17, 2022
    Hello,
    Had a question about YAOCTRU and Installer:

    When we fetch a specific build like 16.0.15128.20224 (current build at the write of this post), it's possible to install Office 2021 and 2019. If both 2019 and 2021 get installed with the mentioned build, so what's the difference between 2019 and 2021 version?

    Let's make question clearer:
    What are differences between two installed Office 2019 and 2021 with same build?
     
  5. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,209
    90,791
    340
  6. nima1024

    nima1024 MDL Member

    Sep 18, 2010
    240
    42
    10
    Thanks for your answer.

    The next confusing thing is that in the page you mentioned for Office 2021, it says that the latest Office LTSC 2021 version is "Version 2108 (Build 14332.20303)", but it's possible to install Office LTSC 2021 with version "Version 2204 (Build 15128.20248)" with your tools.

    How it can be possible?

    Because Office 2021 is different from Office LTSC 2021.
     
  7. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,674
    103,513
    450
    Isn't that just licensing? When volume activated all office 2021 installs will show LTSC afaik.
     
  8. nima1024

    nima1024 MDL Member

    Sep 18, 2010
    240
    42
    10
    I do really think like you and it only matters of licensing.
     
  9. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,209
    90,791
    340
    Office LTSC 2021 licenses are feature-locked, you will not get any new features regardless the version
     
  10. nima1024

    nima1024 MDL Member

    Sep 18, 2010
    240
    42
    10
    You mean there is no actual feature difference between PerpetualVL (Build 14332.20303) and Monthly (15128.20248) build when we specify Office LTSC 2021?
    Even the Monthly is about 1 more GB.

    If so, how we can really install the latest version and activate it?
     
  11. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,209
    90,791
    340
    uup-converter v79r

    - Revised update to include /Region:all parameter for Apps integration
     
  12. fch1993

    fch1993 MDL Senior Member

    Mar 14, 2020
    382
    275
    10
    Seems not support SSU MSU files like: SSU-22000.702-x64.msu.
     
  13. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,209
    90,791
    340
    Correct, so use the cab file
     
  14. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,748
    3,575
    60
    @abbodi1406,

    Code:
    ============================================================
    Running UUP -> ISO v79
    ============================================================
    
    ============================================================
    Checking UUP Info . . .
    ============================================================
    
    ============================================================
    Configured Options . . .
    ============================================================
    
    AutoStart 1
    AddUpdates 1
    UpdtBootFiles
    AppsLevel -
    
    ============================================================
    Parsing Apps CompDB . . .
    ============================================================
    
    
    ============================================================
    Preparing Reference ESDs . . .
    ============================================================
    
    cabs_Microsoft-OneCore-ApplicationModel-Sync-Desktop-FOD-Package-amd64
    cabs_Microsoft-OneCore-DirectX-Database-FOD-Package-amd64
    cabs_Microsoft-Windows-Ethernet-Client-Intel-E1i68x64-FOD-Package-amd64
    cabs_Microsoft-Windows-Ethernet-Client-Intel-E2f68-FOD-Package-amd64
    cabs_Microsoft-Windows-Ethernet-Client-Realtek-Rtcx21x64-FOD-Package-amd64
    cabs_Microsoft-Windows-Ethernet-Client-Vmware-Vmxnet3-FOD-Package-amd64
    cabs_Microsoft-Windows-FoDMetadata-Package
    cabs_Microsoft-Windows-Hello-Face-Package-amd64
    cabs_Microsoft-Windows-InternetExplorer-Optional-Package-amd64
    cabs_Microsoft-Windows-Kernel-LA57-FoD-Package-amd64
    cabs_Microsoft-Windows-LanguageFeatures-Basic-pt-br-Package-amd64
    cabs_Microsoft-Windows-LanguageFeatures-Handwriting-pt-br-Package-amd64
    cabs_Microsoft-Windows-LanguageFeatures-OCR-pt-br-Package-amd64
    cabs_Microsoft-Windows-LanguageFeatures-Speech-pt-br-Package-amd64
    cabs_Microsoft-Windows-LanguageFeatures-TextToSpeech-pt-br-Package-amd64
    cabs_Microsoft-Windows-MediaPlayer-Package-amd64
    cabs_Microsoft-Windows-MediaPlayer-Package-wow64
    cabs_Microsoft-Windows-Notepad-System-FoD-Package-amd64
    cabs_Microsoft-Windows-Notepad-System-FoD-Package-wow64
    cabs_Microsoft-Windows-PowerShell-ISE-FOD-Package-amd64
    cabs_Microsoft-Windows-PowerShell-ISE-FOD-Package-wow64
    cabs_Microsoft-Windows-Printing-PMCPPC-FoD-Package-amd64
    cabs_Microsoft-Windows-StepsRecorder-Package-amd64
    cabs_Microsoft-Windows-StepsRecorder-Package-wow64
    cabs_Microsoft-Windows-TabletPCMath-Package-amd64
    cabs_Microsoft-Windows-Wallpaper-Content-Extended-FoD-Package-amd64
    cabs_Microsoft-Windows-Wifi-Client-Broadcom-Bcmpciedhd63-FOD-Package-amd64
    cabs_Microsoft-Windows-Wifi-Client-Broadcom-Bcmwl63a-FOD-Package-amd64
    cabs_Microsoft-Windows-Wifi-Client-Broadcom-Bcmwl63al-FOD-Package-amd64
    cabs_Microsoft-Windows-Wifi-Client-Intel-Netwbw02-FOD-Package-amd64
    cabs_Microsoft-Windows-Wifi-Client-Intel-Netwew00-FOD-Package-amd64
    cabs_Microsoft-Windows-Wifi-Client-Intel-Netwew01-FOD-Package-amd64
    cabs_Microsoft-Windows-Wifi-Client-Intel-Netwlv64-FOD-Package-amd64
    cabs_Microsoft-Windows-Wifi-Client-Intel-Netwns64-FOD-Package-amd64
    cabs_Microsoft-Windows-Wifi-Client-Intel-Netwsw00-FOD-Package-amd64
    cabs_Microsoft-Windows-Wifi-Client-Intel-Netwtw02-FOD-Package-amd64
    cabs_Microsoft-Windows-Wifi-Client-Intel-Netwtw04-FOD-Package-amd64
    cabs_Microsoft-Windows-Wifi-Client-Intel-Netwtw06-FOD-Package-amd64
    cabs_Microsoft-Windows-Wifi-Client-Intel-Netwtw08-FOD-Package-amd64
    cabs_Microsoft-Windows-Wifi-Client-Intel-Netwtw10-FOD-Package-amd64
    cabs_Microsoft-Windows-Wifi-Client-Marvel-Mrvlpcie8897-FOD-Package-amd64
    cabs_Microsoft-Windows-Wifi-Client-Qualcomm-Athw8x-FOD-Package-amd64
    cabs_Microsoft-Windows-Wifi-Client-Qualcomm-Athwnx-FOD-Package-amd64
    cabs_Microsoft-Windows-Wifi-Client-Qualcomm-Qcamain10x64-FOD-Package-amd64
    cabs_Microsoft-Windows-Wifi-Client-Ralink-Netr28x-FOD-Package-amd64
    cabs_Microsoft-Windows-Wifi-Client-Realtek-Rtl8187se-FOD-Package-amd64
    cabs_Microsoft-Windows-Wifi-Client-Realtek-Rtl8192se-FOD-Package-amd64
    cabs_Microsoft-Windows-Wifi-Client-Realtek-Rtl819xp-FOD-Package-amd64
    cabs_Microsoft-Windows-Wifi-Client-Realtek-Rtl85n64-FOD-Package-amd64
    cabs_Microsoft-Windows-Wifi-Client-Realtek-Rtwlane-FOD-Package-amd64
    cabs_Microsoft-Windows-Wifi-Client-Realtek-Rtwlane01-FOD-Package-amd64
    cabs_Microsoft-Windows-Wifi-Client-Realtek-Rtwlane13-FOD-Package-amd64
    cabs_Microsoft-Windows-WMIC-FoD-Package-amd64
    cabs_Microsoft-Windows-WMIC-FoD-Package-wow64
    cabs_Microsoft-Windows-WordPad-FoD-Package-amd64
    cabs_Microsoft-Windows-WordPad-FoD-Package-wow64
    cabs_OpenSSH-Client-Package-amd64
    
    ============================================================
    Creating Setup Media Layout . . .
    ============================================================
    
    
    ============================================================
    Creating install.wim . . .
    ============================================================
    
    Using LZX compression with 8 threads
    Archiving file data: 6569 MiB of 6569 MiB (100%) done
    Using LZX compression with 8 threads
    Archiving file data: 257 MiB of 257 MiB (100%) done
    
    ============================================================
    Updating install.wim / 2 image(s) . . .
    ============================================================
    
    1/1: Windows10.0-KB5007297-x64-NDP48.cab [NetFx]
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Adding Apps . . .
    
    Microsoft.NET.Native.Framework.x64.1.3
    Microsoft.NET.Native.Framework.x64.1.7
    Microsoft.NET.Native.Framework.x64.2.2
    Microsoft.NET.Native.Runtime.x64.1.4
    Microsoft.NET.Native.Runtime.x64.1.7
    Microsoft.NET.Native.Runtime.x64.2.2
    Microsoft.UI.Xaml.x64.2.1
    Microsoft.UI.Xaml.x64.2.3
    Microsoft.UI.Xaml.x64.2.4
    Microsoft.UI.Xaml.x64.2.7
    Microsoft.VCLibs.x64.14.00
    Microsoft.VCLibs.x64.14.00.Desktop
    
    
    Adding Custom Apps List . . .
    
    Microsoft.WindowsStore_8wekyb3d8bbwe
    Microsoft.WindowsCalculator_8wekyb3d8bbwe
    Microsoft.WindowsNotepad_8wekyb3d8bbwe
    Microsoft.WindowsTerminal_8wekyb3d8bbwe
    Microsoft.GetHelp_8wekyb3d8bbwe
    Microsoft.WindowsSoundRecorder_8wekyb3d8bbwe
    Microsoft.ScreenSketch_8wekyb3d8bbwe
    Microsoft.MicrosoftStickyNotes_8wekyb3d8bbwe
    Microsoft.XboxSpeechToTextOverlay_8wekyb3d8bbwe
    Microsoft.GamingApp_8wekyb3d8bbwe
    Microsoft.XboxGameOverlay_8wekyb3d8bbwe
    Microsoft.XboxGamingOverlay_8wekyb3d8bbwe
    Microsoft.XboxIdentityProvider_8wekyb3d8bbwe
    Microsoft.Xbox.TCUI_8wekyb3d8bbwe
    Microsoft.Windows.Photos_8wekyb3d8bbwe
    Microsoft.PowerAutomateDesktop_8wekyb3d8bbwe
    Microsoft.DesktopAppInstaller_8wekyb3d8bbwe
    Microsoft.WebMediaExtensions_8wekyb3d8bbwe
    Microsoft.RawImageExtension_8wekyb3d8bbwe
    Microsoft.HEIFImageExtension_8wekyb3d8bbwe
    Microsoft.HEVCVideoExtension_8wekyb3d8bbwe
    Microsoft.VP9VideoExtensions_8wekyb3d8bbwe
    Microsoft.WebpImageExtension_8wekyb3d8bbwe
    Microsoft.SecHealthUI_8wekyb3d8bbwe
    Clipchamp.Clipchamp_yxz26nhyzhsrt
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Saving image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Adding Updates . . .
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.22621.1
    
    Processing 1 of 1 - Adding package Package_for_DotNetRollup~31bf3856ad364e35~amd64~~10.0.4460.20
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image File : B:\ABBODI~1\22621.1_amd64_pt-br_multi_65369a9e_convert\ISOFOLDER\sources\install.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Image Version: 10.0.22621.1
    
    Starting to update components...
    Starting to install product key...
    Finished installing product key.
    
    Adding package Microsoft-Windows-ProfessionalEdition~31bf3856ad364e35~amd64~~10.0.22621.1
    Removing package Microsoft-Windows-CoreEdition~31bf3856ad364e35~amd64~~10.0.22621.1
    [==========================100.0%==========================]
    
    Finished updating components.
    
    Starting to apply edition-specific settings...
    Finished applying edition-specific settings.
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.19041.844
    
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    "ISOFOLDER\sources\install.wim" original size: 3143811 KiB
    Using LZX compression with 8 threads
    Archiving file data: 7317 MiB of 7317 MiB (100%) done
    "ISOFOLDER\sources\install.wim" optimized size: 3007604 KiB
    Space saved: 136207 KiB
    
    ============================================================
    Creating winre.wim . . .
    ============================================================
    
    Using LZX compression with 8 threads
    Archiving file data: 1199 MiB of 1199 MiB (100%) done
    
    ============================================================
    Adding winre.wim to install.wim . . .
    ============================================================
    
    
    ============================================================
    Creating boot.wim . . .
    ============================================================
    
    
    ============================================================
    Creating ISO . . .
    ============================================================
    
    OSCDIMG 2.56 CD-ROM and DVD-ROM Premastering Utility
    Copyright (C) Microsoft, 1993-2012. All rights reserved.
    Licensed only for producing Microsoft authorized content.
    
    
    Scanning source tree (500 files in 43 directories)
    Scanning source tree complete (943 files in 86 directories)
    
    Computing directory information complete
    
    Image file is 4325572608 bytes (before optimization)
    
    Writing 943 files in 86 directories to 22621.1.220506-1250.NI_RELEASE_CLIENTMULTI_X64FRE_PT-BR.ISO
    
    100% complete
    
    Storage optimization saved 23 files, 14233600 bytes (1% of image)
    
    After optimization, image file is 4313468928 bytes
    Space saved because of embedding, sparseness or optimization = 14233600
    
    Done.
    Finished.
    
    
    ============================================================
    Removing temporary files . . .
    ============================================================
    
    Press 0 to exit.
    

    The script is in the package "VirtualCreate_ImageIndexEditions.zip", in my signature.
     
  15. Lex24

    Lex24 MDL Junior Member

    Apr 14, 2018
    51
    47
    0
    #1915 Lex24, May 22, 2022
    Last edited: May 22, 2022
    I get "Unattend.xml" error when updating offline image of Windows 11 from 22000.556 to 22000.675 with W10UI_10.18 (after booting to Strelec Win10 PE v2022-01-03). SSU and .NET seem to update properly but LCU update fails. Online update in Safe Mode works ok.

    Here is W10UI.ini, debug log and a few screenshots (the error message is shown on the last one):

    https://pastebin.com/V1Hi304x

    https://pastebin.com/GTpSrJ3H

    https://imagizer.imageshack.com/img923/7964/uNMMqk.png

    https://imagizer.imageshack.com/img924/2706/AnLmb9.png

    https://imagizer.imageshack.com/img923/6607/miMpc3.png

    https://imagizer.imageshack.com/img922/8315/Hh0fBt.png
     
  16. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,209
    90,791
    340
    @Lex24

    I have no control on dism or cbs errors
    you can check C:\Windows\Logs\DISM\dism.log and C:\Windows\Logs\MoSetup\UpdateAgent.log
     
  17. KleineZiege

    KleineZiege MDL Expert

    Dec 11, 2018
    1,854
    2,107
    60
    #1917 KleineZiege, May 22, 2022
    Last edited: May 22, 2022
  18. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,674
    103,513
    450
    Code:
    22000.706.1.10
     
  19. KleineZiege

    KleineZiege MDL Expert

    Dec 11, 2018
    1,854
    2,107
    60
    yes right is 706
    Thanks

    [​IMG]
     
  20. KleineZiege

    KleineZiege MDL Expert

    Dec 11, 2018
    1,854
    2,107
    60
    what i don't understand why he doesn't install adk,
    for the 22000