abbodi1406's Batch Scripts Repo

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

  1. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,274
    94,761
    450
    @abbodi1406

    When i run the multi-arch.cmd in UUP>ISO v84:

    Code:
    
    ============================================================
    Extracting ISO files . . .
    ============================================================
    
    "19044.2006.220907-2213.21H2_RELEASE_SVC_PROD1_CLIENT_X64FRE_NL-NL.iso"
    
    "19044.2006.220907-2213.21H2_RELEASE_SVC_PROD1_CLIENT_X86FRE_NL-NL.iso"
    
    ============================================================
    Checking distributions Info . . .
    ============================================================
    
    ============================================================
    Preparing ISO Info . . .
    ============================================================
            1 file(s) copied.
    
    ============================================================
    Preparing boot configuration settings . . .
    ============================================================
    
    
    ============================================================
    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 (1500 files in 148 directories)
    Scanning source tree complete (1877 files in 190 directories)
    
    Computing directory information complete
    
    Image file is 11986272256 bytes (before optimization)
    
    Writing 1877 files in 190 directories to 19041.2006.220907-1708.VB_RELEASE_SVC_PROD3_CLIENTMULTI_OEMRET_X86-X64FRE_NL-NL.ISO
    
    100% complete
    
    Storage optimization saved 752 files, 162428928 bytes (2% of image)
    
    After optimization, image file is 11829596160 bytes
    Space saved because of embedding, sparseness or optimization = 162428928
    
    Done.
    
    Press 0 to exit.
    
    
    The multi-arch iso is named 19041 (maybe because the source ISOs contain swm files or i missed something explaining why this happens), you know i always give the ISO my own name manually but i thought let's report this anyway:)
     
  2. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,219
    84,894
    340
    @Enthousiast
    maybe

    can you mount the x64 iso, and run this command manually from script directory, and post result?
    Code:
    bin\wimlib-imagex.exe extract "E:\sources\install.swm" 1 Windows\WinSxS\Manifests\amd64_microsoft-windows-coreos-revision*.manifest --dest-dir=.\bin\temp --no-acls --no-attributes
    bin\wimlib-imagex.exe extract "E:\sources\install.swm" 1 Windows\System32\config\SOFTWARE --dest-dir=.\bin\temp --no-acls --no-attributes
    rd /s /q bin\temp 2>nul
    change E:\ to mounted dvd letter
     
  3. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,274
    94,761
    450
    #2143 Enthousiast, Sep 19, 2022
    Last edited: Sep 19, 2022
    Code:
    F:\Win_10_AiO\uup-converter-wimlib-84>bin\wimlib-imagex.exe extract "H:\sources\install.swm" 1 Windows\WinSxS\Manifests\amd64_microsoft-windows-coreos-revision*.manifest --dest-dir=.\bin\temp --no-acls --no-attributes
    Extracting file data: 131 bytes of 131 bytes (100%) done
    Done extracting files.
    
    F:\Win_10_AiO\uup-converter-wimlib-84>bin\wimlib-imagex.exe extract "H:\sources\install.swm" 1 Windows\System32\config\SOFTWARE --dest-dir=.\bin\temp --no-acls --no-attributes
    [ERROR] "\Windows\System32\config\SOFTWARE": blob not found
            SHA-1 message digest of missing blob:
            86e13c4a3056168ceb48a55c5b9e6a9c1d06b5d6
    ERROR: "H:\sources\install.swm" is part of a split WIM. Use --ref to specify the other parts.
    ERROR: Exiting with error code 55:
           A file resource needed to complete the operation was missing from the WIM.
    
    F:\Win_10_AiO\uup-converter-wimlib-84>rd /s /q bin\temp 2>nul
    
    F:\Win_10_AiO\uup-converter-wimlib-84>
    I got this message with the test script you sent me a while ago for fixing the ability to have the multi-arch script working with swm files inside the source ISOs. That was with these source isos with the earlier runs it didn't show this error and i deleted all old stuff after i successfully ran the one from v84 last night, but before i noticed the 19041 showing up :(

    Edit: the indexes are all Enterprise 2021 LTSC.
     
  4. NICK@NUMBER11

    NICK@NUMBER11 MDL Expert

    Mar 23, 2010
    1,503
    720
    60
  5. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,219
    84,894
    340
  6. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,219
    84,894
    340
  7. KleineZiege

    KleineZiege MDL Expert

    Dec 11, 2018
    1,694
    1,932
    60
    #2147 KleineZiege, Sep 28, 2022
    Last edited: Sep 28, 2022
    question , since the Office 2021 on 2209,
    16.0.15629.20156

    there must be a change, I now get the message
    I show in a picture.

    This morning it was not there, I work every day with Word.

    Just now the message comes, No Original etc....

    is a complete new setup in the 2209

    I Use kms 47
     

    Attached Files:

  8. Windows_Addict

    Windows_Addict MDL Expert

    Jul 19, 2018
    1,255
    3,455
    60
    Open command prompt as admin and enter

    Code:
    reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\Configuration"
    
    reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\0ff1ce15-a989-479d-af46-f275c6370663"
    
    reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\0ff1ce15-a989-479d-af46-f275c6370663" /reg:32
    Share the output.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. KleineZiege

    KleineZiege MDL Expert

    Dec 11, 2018
    1,694
    1,932
    60
    WOW THX For all
    Code:
    Microsoft Windows [Version 10.0.19044.2075]
    (c) Microsoft Corporation. Alle Rechte vorbehalten.
    
    C:\WINDOWS\system32>reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\Configuration"
    
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\Configuration
        AudienceId    REG_SZ    492350f6-3a01-4f97-b9c0-c7c6ddf67d60
        ClientFolder    REG_SZ    C:\Program Files\Common Files\Microsoft Shared\ClickToRun
        ClientVersionToReport    REG_SZ    16.0.15629.20152
        WatcherInterval    REG_SZ    3600000
        PipelineServerName    REG_SZ    ClickToRun_Pipeline16
        PackageLockerPath    REG_SZ    C:\ProgramData\Microsoft\Office
        VersionToReport    REG_SZ    16.0.15629.20156
        ScenarioCulture    REG_SZ
        InstallID    REG_SZ    8E791BDB-45A7-4E2F-9C0B-C67861568D02
        Platform    REG_SZ    x64
        InstallationPath    REG_SZ    C:\Program Files\Microsoft Office
        ClientCulture    REG_SZ    de-DE
        CDNBaseUrl    REG_SZ    http://officecdn.microsoft.com/db/492350f6-3a01-4f97-b9c0-c7c6ddf67d60
        AudienceData    REG_SZ    Production::CC
        UpdateUrl    REG_SZ    http://officecdn.microsoft.com/db/492350f6-3a01-4f97-b9c0-c7c6ddf67d60
        Excel2021Volume.MediaType    REG_SZ    DVD
        Word2021Volume.MediaType    REG_SZ    DVD
        UpdatesEnabled    REG_SZ    True
        ProductKeys    REG_SZ
        Activate    REG_SZ
        Excel2021Volume.ExcludedApps    REG_SZ    onedrive
        Word2021Volume.ExcludedApps    REG_SZ    onedrive
        StreamingFinished    REG_SZ    True
        RSODReset    REG_SZ    False
        ProductReleaseIds    REG_SZ    Excel2021Volume,Word2021Volume
        Excel2021Volume.OSPPReady    REG_SZ    1
        Word2021Volume.OSPPReady    REG_SZ    1
        UpdateChannel    REG_SZ    http://officecdn.microsoft.com/db/492350f6-3a01-4f97-b9c0-c7c6ddf67d60
        UpdateChannelChanged    REG_SZ    False
        ClientXnoneHash    REG_SZ    BAB0E83BB93C593446F549654FD47248
        ClientXnoneVersion    REG_SZ    16.0.15629.20156
        StreamPackageUrlChanged    REG_SZ    False
        Word2021Volume.TenantId    REG_SZ    6,
    
    
    C:\WINDOWS\system32>
    C:\WINDOWS\system32>reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\0ff1ce15-a989-479d-af46-f275c6370663"
    
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\0ff1ce15-a989-479d-af46-f275c6370663
        KeyManagementServiceName    REG_SZ    0.0.0.0
        KeyManagementServicePort    REG_SZ    1688
    
    
    C:\WINDOWS\system32>
    C:\WINDOWS\system32>reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\0ff1ce15-a989-479d-af46-f275c6370663" /reg:32reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\Configuration"
    FEHLER: Ungültige Syntax.
    Geben Sie "REG QUERY /?" ein, um die Syntax anzuzeigen.
    
    C:\WINDOWS\system32>
    C:\WINDOWS\system32>reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\0ff1ce15-a989-479d-af46-f275c6370663"
    
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\0ff1ce15-a989-479d-af46-f275c6370663
        KeyManagementServiceName    REG_SZ    0.0.0.0
        KeyManagementServicePort    REG_SZ    1688
    
    
    C:\WINDOWS\system32>
    C:\WINDOWS\system32>reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\0ff1ce15-a989-479d-af46-f275c6370663" /reg:32
     
  10. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,349
    2,937
    60
    now I wonder why KeyManagementServiceName is still 0.0.0.0 after KMS_VL_ALL 47
    mine is 172.16.0.2
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. Windows_Addict

    Windows_Addict MDL Expert

    Jul 19, 2018
    1,255
    3,455
    60
    KeyManagementServiceName REG_SZ 0.0.0.0
    You didn't use latest KMS_VL_ALL
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. KleineZiege

    KleineZiege MDL Expert

    Dec 11, 2018
    1,694
    1,932
    60
    nene

    Code:
    ************************************************************
    ***                   Windows Status                     ***
    ************************************************************
    
    Name: Windows(R), EnterpriseS edition
    Description: Windows(R) Operating System, VOLUME_KMSCLIENT channel
    Activation ID: 32d2fab3-e4a8-42c2-923b-4bf4fd13e6ee
    Extended PID: 03612-04250-000-000002-03-1031-19044.0000-0672022
    Product Key Channel: Volume:GVLK
    Partial Product Key: J462D
    License Status: Licensed
    Volume activation expiration: 257305 minute(s) (179 day(s))
    Configured Activation Type: All
    
    Most recent activation information:
    Key Management Service client information
        Client Machine ID (CMID): f95785d7-c8ed-4e35-af84-88fccf71780f
        DNS auto-discovery: KMS name not available
        Registered KMS machine name: 0.0.0.0:1688
        KMS machine IP address: 0.0.0.0
        KMS machine extended PID: 03612-00206-555-040234-03-1031-17763.0000-3492021
        Activation interval: 120 minutes
        Renewal interval: 10080 minutes
        KMS host caching: Enabled
    
        Volume activation will expire 26.03.2023 10:30:33
    ____________________________________________________________
    
    ************************************************************
    ***                   Office Status                      ***
    ************************************************************
    
    Name: Office 21, Office21Word2021VL_KMS_Client_AE edition
    Description: Office 21, VOLUME_KMSCLIENT channel
    Activation ID: abe28aea-625a-43b1-8e30-225eb8fbd9e5
    Extended PID: 03612-04725-000-000000-03-1031-19044.0000-0672022
    Product Key Channel: Volume:GVLK
    Partial Product Key: X79KV
    License Status: Licensed
    Volume activation expiration: 257304 minute(s) (179 day(s))
    Configured Activation Type: All
    
    Most recent activation information:
    Key Management Service client information
        Client Machine ID (CMID): f95785d7-c8ed-4e35-af84-88fccf71780f
        DNS auto-discovery: KMS name not available
        Registered KMS machine name: 0.0.0.0:1688
        KMS machine IP address: 0.0.0.0
        KMS machine extended PID: 03612-00206-584-708845-03-1031-20348.0000-3212021
        Activation interval: 120 minutes
        Renewal interval: 10080 minutes
        KMS host caching: Enabled
    
        Volume activation will expire 26.03.2023 10:29:33
    ____________________________________________________________
    
    
    Name: Office 21, Office21Excel2021VL_KMS_Client_AE edition
    Description: Office 21, VOLUME_KMSCLIENT channel
    Activation ID: ea71effc-69f1-4925-9991-2f5e319bbc24
    Extended PID: 03612-04601-000-000000-03-1031-19044.0000-0672022
    Product Key Channel: Volume:GVLK
    Partial Product Key: G6RVC
    License Status: Licensed
    Volume activation expiration: 257304 minute(s) (179 day(s))
    Configured Activation Type: All
    
    Most recent activation information:
    Key Management Service client information
        Client Machine ID (CMID): f95785d7-c8ed-4e35-af84-88fccf71780f
        DNS auto-discovery: KMS name not available
        Registered KMS machine name: 0.0.0.0:1688
        KMS machine IP address: 0.0.0.0
        KMS machine extended PID: 03612-00206-576-259905-03-1031-20348.0000-1172022
        Activation interval: 120 minutes
        Renewal interval: 10080 minutes
        KMS host caching: Enabled
    
        Volume activation will expire 26.03.2023 10:29:34
    ____________________________________________________________
    
    
    Press any key to continue...
    
    
     
  13. KleineZiege

    KleineZiege MDL Expert

    Dec 11, 2018
    1,694
    1,932
    60
    hmm i check
     
  14. KleineZiege

    KleineZiege MDL Expert

    Dec 11, 2018
    1,694
    1,932
    60
    I hope you have been right

    new install old delete

    Code:
    ************************************************************
    ***                   Windows Status                     ***
    ************************************************************
    
    Name: Windows(R), EnterpriseS edition
    Description: Windows(R) Operating System, VOLUME_KMSCLIENT channel
    Partial Product Key: J462D
    License Status: Licensed
    Volume activation expiration: 259195 minute(s) (180 day(s))
    Configured Activation Type: All
    
    Most recent activation information:
    Key Management Service client information
        Client Machine ID (CMID): f95785d7-c8ed-4e35-af84-88fccf71780f
        Registered KMS machine name: 172.16.0.2:1688
        KMS machine IP address: 172.16.0.2
        KMS machine extended PID: 06401-00206-551-975002-03-1031-9600.0000-1062021
        Activation interval: 120 minutes
        Renewal interval: 10080 minutes
        KMS host caching is enabled
    
    
    Windows(R), EnterpriseS edition:
        Volume activation will expire 27.03.2023 18:20:38
    
    ____________________________________________________________
    
    ************************************************************
    ***              Office 2016-2021 C2R Status             ***
    ************************************************************
    ---Processing--------------------------
    ---------------------------------------
    PRODUCT ID: 00472-50000-00000-AA725
    SKU ID: abe28aea-625a-43b1-8e30-225eb8fbd9e5
    LICENSE NAME: Office 21, Office21Word2021VL_KMS_Client_AE edition
    LICENSE DESCRIPTION: Office 21, VOLUME_KMSCLIENT channel
    BETA EXPIRATION: 01.01.1601
    LICENSE STATUS:  ---LICENSED---
    ERROR CODE: 0x4004F040 (for information purposes only as the status is licensed)
    ERROR DESCRIPTION: The Software Licensing Service reported that the product was activated but the owner should verify the Product Use Rights.
    REMAINING GRACE: 179 days  (259195 minute(s) before expiring)
    Last 5 characters of installed product key: X79KV
    Activation Type Configuration: ALL
            DNS auto-discovery: KMS name not available
            KMS machine registry override defined: 172.16.0.2:1688
            Activation Interval: 120 minutes
            Renewal Interval: 10080 minutes
            KMS host caching: Enabled
    ---------------------------------------
    PRODUCT ID: 00460-10000-00000-AA546
    SKU ID: ea71effc-69f1-4925-9991-2f5e319bbc24
    LICENSE NAME: Office 21, Office21Excel2021VL_KMS_Client_AE edition
    LICENSE DESCRIPTION: Office 21, VOLUME_KMSCLIENT channel
    BETA EXPIRATION: 01.01.1601
    LICENSE STATUS:  ---LICENSED---
    ERROR CODE: 0x4004F040 (for information purposes only as the status is licensed)
    ERROR DESCRIPTION: The Software Licensing Service reported that the product was activated but the owner should verify the Product Use Rights.
    REMAINING GRACE: 179 days  (259195 minute(s) before expiring)
    Last 5 characters of installed product key: G6RVC
    Activation Type Configuration: ALL
            DNS auto-discovery: KMS name not available
            KMS machine registry override defined: 172.16.0.2:1688
            Activation Interval: 120 minutes
            Renewal Interval: 10080 minutes
            KMS host caching: Enabled
    ---------------------------------------
    ---------------------------------------
    ---Exiting-----------------------------
    
    Press any key to continue...
    Mayn was dumb backup
    what I have imported
     
  15. KleineZiege

    KleineZiege MDL Expert

    Dec 11, 2018
    1,694
    1,932
    60
    #2155 KleineZiege, Sep 28, 2022
    Last edited: Sep 28, 2022
    installed new VMware use kms 47
    bro message comes

    @ Edit = think it will also run up with you the days
     
  16. Windows_Addict

    Windows_Addict MDL Expert

    Jul 19, 2018
    1,255
    3,455
    60
    Run the commands which I've mentioned here and share the output.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. KleineZiege

    KleineZiege MDL Expert

    Dec 11, 2018
    1,694
    1,932
    60
    #2157 KleineZiege, Sep 28, 2022
    Last edited: Sep 28, 2022
    I'll redo it, but you can see that I'm absolutely using mas 1.6 for digital and kms 47 for offline activation.

    then I make word 2021 2 x on

    windows 11 22621. 521
    ah the setup of office new version I can show you that no longer has to do with the other version.
    setup has totally changed



    edit:: now it looks like this

    you have to look for yourself there is something wrong
    they have changed something

    moment am setting up
     

    Attached Files:

    • New.PNG
      New.PNG
      File size:
      39.5 KB
      Views:
      37
  18. CaptainKirk1966

    CaptainKirk1966 Former MDL Guru

    Oct 31, 2009
    2,549
    1,377
    90
    non sequitur
     
  19. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,349
    2,937
    60
    #2159 Paul Mercer, Oct 4, 2022
    Last edited: Oct 4, 2022
    0 to exit just types 0 for me at the very end
    the second 0 closes the window

    Code:
    ============================================================
    Extracting ISO files . . .
    ============================================================
    
    "F:\Windows\Base Images\Windows 10\19041.1.191206-1406.vb_release_clientmulti_x64fre_en-us.iso"
    
    "F:\Windows\Base Images\Windows 10\19041.1.191206-1406.vb_release_clientmulti_x86fre_en-us.iso"
    
    ============================================================
    Checking distributions Info . . .
    ============================================================
    
    ============================================================
    Preparing ISO Info . . .
    ============================================================
    
    ============================================================
    Unifying install.wim . . .
    ============================================================
    
    Using LZX compression with 8 threads
    Archiving file data: 4891 MiB of 4891 MiB (100%) done
    Calculating integrity table for WIM: 5786 MiB of 5786 MiB (100%) done
    Using LZX compression with 1 thread
    Archiving file data: 240 MiB of 240 MiB (100%) done
    Calculating integrity table for WIM: 5865 MiB of 5865 MiB (100%) done
    Using LZX compression with 8 threads
    Archiving file data: 3154 MiB of 3154 MiB (100%) done
    Calculating integrity table for WIM: 7435 MiB of 7435 MiB (100%) done
    
    ============================================================
    Preparing boot configuration settings . . .
    ============================================================
    
    
    ============================================================
    Preparing Custom AIO settings . . .
    ============================================================
    
    
    ============================================================
    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
    Scanning source tree complete (65 files in 12 directories)
    
    Computing directory information complete
    
    Image file is 8560246784 bytes (before optimization)
    
    Writing 65 files in 12 directories to 19041.1.191206-1406.VB_RELEASE_CLIENTMULTI_OEMRET_X86-X64FRE_EN-US.ISO
    
    100% complete
    
    Storage optimization saved 20 files, 14012416 bytes (1% of image)
    
    After optimization, image file is 8546408448 bytes
    Space saved because of embedding, sparseness or optimization = 14012416
    
    Done.
    
    Press 0 to exit.
    0
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  20. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,219
    84,894
    340
    Mistakenly duplicated choice prompt
    Code:
    echo Press 0 to exit.
    choice /c 0 /n
    choice /c 0 /n
    if errorlevel 1 (exit /b) else (rem.)