abbodi1406's Batch Scripts Repo

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

  1. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,141
    84,319
    340
    The script only "enable" NetFx3 feature from that folder

    you can rename the files as they were updates, example:
    Windows10-Basic-fa-ir-x64.cab
    Windows10-Fonts-Arab-x64.cab
     
  2. AeonX

    AeonX MDL Addicted

    May 24, 2013
    793
    719
    30
    The WHD-W8.1UI script does not integrate the KB2976978 update. But now that I saw I used version 4.2 and already has version 4.3 but according to the changelog there was no change in that regard.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,141
    84,319
    340
    The script has a special check case for KB2976978, it's the same since earlier versions
    it should work

    will verify and see
     
  4. AeonX

    AeonX MDL Addicted

    May 24, 2013
    793
    719
    30
    Thanks. Another small problem, the following line in the RunOnce_W10_Telemetry_Tasks.cmd file on the desktop gives access denied error:

    Code:
    reg.exe delete HKLM\SYSTEM\CurrentControlSet\Control\WMI\AutoLogger\SQMLogger /f
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,141
    84,319
    340
    Hmm, i just tried it on my Win8.1 and deleted successfully
     
  6. AeonX

    AeonX MDL Addicted

    May 24, 2013
    793
    719
    30
    #346 AeonX, May 22, 2018
    Last edited: May 22, 2018
    For me it only worked using NSudo, I'll do more tests.

    PS: I've integrated the updates KB3044374 and KB3080149 related to Windows 10 and telemetry may have some relation. My idea is to integrate everything related to telemetry and deactivate it with your script so that these updates are no longer offered by Windows Update. KB2976978 is now offered as an important update and usually receives version updates :(
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. AeonX

    AeonX MDL Addicted

    May 24, 2013
    793
    719
    30
    @abbodi1406 I think the problem is in the following line when %kb%==KB2976978:

    Code:
    if exist "%mountdir%\Windows\servicing\packages\%mumcheck%" (set /a _sum-=1&if %msu% equ 1 (set /a _msu-=1&goto :eof) else (set /a _cab-=1&goto :eof))

    I simply modified the line for this and now KB2976978 is integrated:

    Code:
    if /i not %kb%==KB2976978 if exist "%mountdir%\Windows\servicing\packages\%mumcheck%" (set /a _sum-=1&if %msu% equ 1 (set /a _msu-=1&goto :eof) else (set /a _cab-=1&goto :eof))
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. AeonX

    AeonX MDL Addicted

    May 24, 2013
    793
    719
    30
    I tried again without success.

    Windows 8.1 Pro with all updates integrated and clean installation on a VM.

    [​IMG]
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. MonarchX

    MonarchX MDL Expert

    May 5, 2007
    1,732
    313
    60
    What is the easiest way to save a copy of the log for W10UI? It simply quits if I try to copy it at the end... It would be a great to have an auto-log generation of some kind... The latest 1607 update W10UI begins by unpacking the big file, not the SS, so I am concerned it may install in the wrong order and to be sure, I need to save the log at the end...
     
  10. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,141
    84,319
    340
    Extracting order does not matter, the script define each update type and order the integration

    --

    thanks @AeonX
    will fix it ASAP
     
  11. #351 Deleted member 1032214, May 24, 2018
    Last edited by a moderator: May 24, 2018
    Hi @abbodi1406
    first i used w10ui to integrate updates in x86 and x64 ltsb 2016 iso separately.
    then i used multi_arch_iso.cmd to create x86 x64 in one iso.
    everything is working fine on a fresh install,and update page is also working fine. until i used baltagy's stopwinupdates https://forums.mydigitallife.net/threads/stopwinupdates.77026/
    after using this tool i'm suppose to see the update page blank.
    but i saw crash while opening update page every time.
    now if i roll back changes in this tool, i saw no problems in update page.

    tested 2 times on 2 fresh install to make sure.
    later i tested original iso, and everything went as suppose to.
    i saw update page blank and no crash happened.

    so i suppose its a problem made by multi_arch_iso.cmd
    just wanted to report this problem.
    thanks.


    edit - sorry, its actually the slipstreamed updates which cause problems with stopwinupdates.
    tested again with x86 x64 ltsb 2016 in one with out integrated updates. and its working as original.
    no problem.
     
  12. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,141
    84,319
    340
    WHD-W81UI 4.4
    WHD-W7UI 4.5


    - fixed KB2976978/KB2952664 installation
    - added support to use DVD drive as target (mounted iso, inserted dvd)

    as for SQMLogger registry issue, unfortunately can't be resolved easily
    changing registry permissions require external tool (SetACL) or long powershell script
     
  13. adric

    adric MDL Expert

    Jul 30, 2009
    1,244
    1,303
    60
    #353 adric, May 28, 2018
    Last edited: May 28, 2018
    I have LTSB 2016 activated with KMS_VL_ALL and recently I saw 2 events in the log and wondering if I need to be concerned about it. Windows is still activated though. Any idea what might be causing these events or something I can check to make sure the auto renewal activation is still working?
    Code:
    Eventid 1000
    
    Faulting application name: SppExtComObj.exe, version: 10.0.14393.2248, time stamp: 0x5ae3f93b
    Faulting module name: RPCRT4.dll, version: 10.0.14393.2155, time stamp: 0x5a9e2260
    Exception code: 0xc0000005
    Fault offset: 0x000000000001b7e3
    Faulting process id: 0x19fc
    Faulting application start time: 0x01d3f66979e31e5b
    Faulting application path: C:\Windows\system32\SppExtComObj.exe
    Faulting module path: C:\Windows\System32\RPCRT4.dll
    Report Id: b7b178d0-9557-4ec0-a68f-e89ef4925e55
    Faulting package full name:
    Faulting package-relative application ID:
    
    Eventid 8198
    
    License Activation (slui.exe) failed with the following error code:
    hr=0x800706BE
    Command-line arguments:
    RuleId=502ff3ba-669a-4674-bbb1-601f34a3b968;Action=AutoActivateSilent;AppId=55c92734-d682-4d71-983e-d6ec3f16059f;SkuId=2d5a5a60-3040-48bf-beb0-fcd770c20ce0;NotificationInterval=1440;Trigger=UserLogon;SessionId=1
    [/cose]
     
  14. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,141
    84,319
    340
    Seem Windows related issue, nothing i could explain or solve

    you may run Check-Activation-Status.cmd to check remaining period
    or check Event ID 12288 & 12289
     
  15. adric

    adric MDL Expert

    Jul 30, 2009
    1,244
    1,303
    60
    #355 adric, May 28, 2018
    Last edited: May 28, 2018
    I only see the error on rare occasions in the logs during the bootup phase. I normally don't get any Event IDs 12288 & 12289 except now when the app error occurred. I ran a check and it looks okay.
    Code:
    ************************************************************
    ***                   Windows Status                     ***
    ************************************************************
    
    Name: Windows(R), EnterpriseS edition
    Description: Windows(R) Operating System, VOLUME_KMSCLIENT channel
    Partial Product Key: QJ4BJ
    License Status: Licensed
    Volume activation expiration: 258911 minute(s) (180 day(s))
    Configured Activation Type: All
    
    A 2nd query later shows that the minutes get decremented. Since it's good again for 180 days, maybe this error only happens during the renewal process. Is there a way to just run the renewal process to see if anything shows up in the log?
     
  16. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,141
    84,319
    340
    I don't think auto renewal can be launche manually, it depend on rules engine and registered activation interval

    you can launch activation with the same command in error log:
    Code:
    SLUI.exe RuleId=502ff3ba-669a-4674-bbb1-601f34a3b968;Action=AutoActivateSilent;AppId=55c92734-d682-4d71-983e-d6ec3f16059f;SkuId=2d5a5a60-3040-48bf-beb0-fcd770c20ce0;NotificationInterval=1440;Trigger=TimerEvent
     
  17. AeonX

    AeonX MDL Addicted

    May 24, 2013
    793
    719
    30
    Suggestion for update scripts:

    They could apply the QualityCompat registry key into Win7/8.1 so that the WU does not offer some superseded updates.

    For Windows 10 I do not know if it has any benefit since this registry key is no longer required for WU to offer the latest cumulative update with meltdown and spectre fixes.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  18. Ras0

    Ras0 MDL Novice

    May 7, 2012
    33
    15
    0
    UI script didn't rename correctly build number last two updates for me, I don't know why. Seen as Win10_14393.0_x64_2018-06-23
     
  19. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,141
    84,319
    340
    WIM files are updated correctly? specially boot.wim
     
  20. Ras0

    Ras0 MDL Novice

    May 7, 2012
    33
    15
    0
    There is nothing wrong with install.wim, tested on vm. Don't know how to sure boot.wim is updated. Btw using w10ui 4.6.