abbodi1406's Batch Scripts Repo

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

  1. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,219
    84,891
    340
    #1701 abbodi1406, Nov 18, 2021
    Last edited: Nov 19, 2021
    (OP)
    @KleineZiege

    IoT Enterprise edition(s) only support OEM licenses/keys
    and setupcomplete.cmd is disabled (don't run) when OEM key is used (except for editions: EnterpriseS, EnterpriseSN, Enterprise, EnterpriseN)

    you can use unattend.xml answer file instead
     
  2. KleineZiege

    KleineZiege MDL Expert

    Dec 11, 2018
    1,694
    1,932
    60
    The answer was top
    Thank you
     
  3. AveYo

    AveYo MDL Expert

    Feb 10, 2009
    1,836
    5,693
    60
    Can try OOBE.cmd instead
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,274
    94,761
    450
    MRP = oobe.cmd, doesn't run either on IoT Enterprise 2021 LTSC.
     
  5. KleineZiege

    KleineZiege MDL Expert

    Dec 11, 2018
    1,694
    1,932
    60
    #1705 KleineZiege, Nov 18, 2021
    Last edited: Nov 18, 2021
    I had also tried, no success

    Online everything goes even massgravel made fit for the 19044

    $OEM$ dosent work
     

    Attached Files:

  6. KleineZiege

    KleineZiege MDL Expert

    Dec 11, 2018
    1,694
    1,932
    60
    the answer from abbodie is enough and you know what you can do
     
  7. migascalp

    migascalp MDL Senior Member

    Sep 18, 2009
    321
    499
    10
    Why not install standard LTSC and use FirstRun.cmd to convert to IoT?
    Code:
    changepk.exe /ProductKey QPM6N-7J2WJ-P88HH-P3YRH-YY74H 
     
  8. Outbreaker

    Outbreaker MDL Senior Member

    Jan 20, 2018
    286
    65
    10
  9. rpo

    rpo MDL Expert

    Jan 3, 2010
    1,447
    1,424
    60
    Microsoft Edge (Chromium) is updated by a scheduled task
     
  10. graver.x

    graver.x MDL Senior Member

    Jan 18, 2020
    342
    476
    10
    #1710 graver.x, Nov 21, 2021
    Last edited: Nov 21, 2021
    I use IoT Ent. And I use setupcomlete.cmd settings (post-setup tab) when preparing an image in NTLite.
    And on the settings tab autounattend.xml there is a special option - OEMSetupComplele (screenshots here) which allows to allow setupcomlete.cmd execution for editions using OEM key . It works.
     
  11. Outbreaker

    Outbreaker MDL Senior Member

    Jan 20, 2018
    286
    65
    10
    All updates are eventually update by a scheduled task. The point is to have an up-to-date Windows 10/11 without the need to connect it too the internet to get the rest of the updates.
     
  12. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,219
    84,891
    340
    How it's added to autounattend.xml?

    p.s. it's fairly easy to run setupcomlete.cmd via autounattend.xml even on OEM images
    Code:
        <settings pass="oobeSystem">
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <FirstLogonCommands>
                    <SynchronousCommand wcm:action="add">
                        <Order>1</Order>
                        <CommandLine>%windir%\Setup\Scripts\setupcomplete.cmd</CommandLine>
                        <Description>setup complete</Description>
                        <RequiresUserInput>false</RequiresUserInput>
                    </SynchronousCommand>
                </FirstLogonCommands>
            </component>
        </settings>
     
  13. graver.x

    graver.x MDL Senior Member

    Jan 18, 2020
    342
    476
    10
    #1713 graver.x, Nov 21, 2021
    Last edited: Nov 21, 2021
    In my autounattend.xml it looks like this:
    Code:
    <settings pass="specialize">
            <component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <RunSynchronous>
                    <RunSynchronousCommand wcm:action="add">
                        <Order>1</Order>
                        <Path>%WINDIR%\Setup\Scripts\SetupComplete.cmd</Path>
                        <WillReboot>Never</WillReboot>
                    </RunSynchronousCommand>
                </RunSynchronous>
            </component>
    need to enable the "OEMSetupComlete" option at the top (there is a hint there if you hover your cursor):
    [​IMG]
     
  14. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,219
    84,891
    340
    I'n not using NTLite

    adding the script to specialize phase mean that most of settings will not be implemented in the user account
     
  15. graver.x

    graver.x MDL Senior Member

    Jan 18, 2020
    342
    476
    10
    Like what? What kind of settings exactly?

    I didn't get into those details. I gave the NTLite example here because I found it convenient for me.
     
  16. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,219
    84,891
    340
    Any HKEY_CURRENT_USER registry
    schedule tasks are not ready in specialize phase
     
  17. fch1993

    fch1993 MDL Senior Member

    Mar 14, 2020
    368
    270
    10
    @abbodi1406

    Small question about uup-converter-wimlib.

    for create_virtual_editions.cmd

    Should it forbid converting 32bit LTSC 2021 to IoT LTSC 2021?

    I didn't get any info that there's 32bit release of IoT LTSC 2021.
     
  18. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,219
    84,891
    340
    Where did you see info that only x64 IoT is supported?
    the lack of x86 iso doesn't necessary mean that

    it's just a virtual SKU anyway
     
  19. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,219
    84,891
    340
    W10UI v10.14

    Minor release
    - Check and exclude unsupported editions for 19041 WindowsExperienceFeaturePack
    - Fixed: ADK parameter is not enabled when using custom dism.exe
     
  20. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,219
    84,891
    340
    WIM <> ESD v8

    - Updated wimlib

    the older one can fail sometimes
    [​IMG]

    new one
    [​IMG]

    thanks to @mzakho for notifying