KUC a utility to check you Windows 7; 2008 R2; WMS; or Win embedded update status

Discussion in 'MDL Projects and Applications' started by komm, Dec 2, 2011.

  1. geneticplasma

    geneticplasma MDL Member

    May 13, 2011
    246
    33
    10
    VERY confused!

    For what are discussion in before posts about KUC and Win8 and your mirror for Win8-Updates incl. *.cmd-Files for KUCo_O
     
  2. komm

    komm MDL Addicted

    Jun 16, 2011
    888
    3,047
    30
  3. Supern00b

    Supern00b MDL Addicted

    Dec 30, 2010
    619
    367
    30
    Thanks for your hard work komm, everything is running smooth here. This is a fantastic utility.

    Cheers.
     
  4. woniu

    woniu MDL Member

    Aug 1, 2009
    130
    50
    10
    komm I think there is a problem with this version as it doesn't show any new updates needed only to remove..
     
  5. komm

    komm MDL Addicted

    Jun 16, 2011
    888
    3,047
    30
    #105 komm, Sep 13, 2012
    Last edited: Sep 13, 2012
    (OP)
    You are right, there is a problem with the reference for the Win7 x64 Client.
    All other references are ok.
    I will update it soon.
     
  6. geneticplasma

    geneticplasma MDL Member

    May 13, 2011
    246
    33
    10
    @komm:

    Possible to answer to #101?
     
  7. komm

    komm MDL Addicted

    Jun 16, 2011
    888
    3,047
    30
    #108 komm, Sep 13, 2012
    Last edited: Sep 14, 2012
    (OP)
    1.If you read the change log and documents for KUC you will see, that KUC is a program to check the update status of Windows 7 systems. Not for XP and not for Windows 8.
    2.You can run KUC under windows 8 to maintain Windows 7 systems or images.
    3.Windows 8 is not released jet and there are only 5-10 updates for x64 or x86 systems,
    so everybody can check this updates by hand.
    4.I’m working at KUC for Win8 at the moment.
    For that I still need some files and iso’s for the server editions and for Windows RT (ARM).
    5.Many things are unknown at the moment.
    Even I was able to get some/(all?) of the hotfixes/updates for Windows 8, there are still no KB articles. So every thing is done by sense and experience.
    6.I maintain the Win8 repository to give users the possibility to wipe out the first found bugs. And also for the first KUC for Win8 version.
    7.I put the cmd files on my Win8 repository for users to send me their packages.txt.
    I need them for the development of KUC for Win8.
    Also the update.cmd is useful to install the LDR version of an update installed.
    8.Everybody, who wants to test the first pre-release versions of KUC for Win8, is welcome.
    Just send me an e-mail. And please include your packages.txt file.
    Note you can find my email address at the bottom of my homepage.
     
  8. Supern00b

    Supern00b MDL Addicted

    Dec 30, 2010
    619
    367
    30
    I'll run KUC until no further updates are offered or have to be removed, 0-0 :D
    Komm I have two questions:
    Running KUC on Windows 8 defaults to the system32 dir for the packages.txt. It has to be selected by hand, it would be nice to be able to specify also the packages.txt on the command line.
    And the other question, the repo dir is getting a little big. How do we remove old updates from the repo dir? I'm thinking of running a cleanup batch on the repo dir that moves all obsolete updates.

    Cheers.
     
  9. komm

    komm MDL Addicted

    Jun 16, 2011
    888
    3,047
    30
    #111 komm, Sep 15, 2012
    Last edited by a moderator: Apr 20, 2017
    (OP)
    To specify the folder where packages.txt should be created use: /up-dir:x:\yyy

    like
    Code:
    KUC updatechecker.exe /up-dir:x:\yyy
    If the packages.txt is already created use x:\yyy\packages.txt on the command line.
    like
    Code:
    KUC updatechecker.exe x:\yyy\packages.txt
    But you are right, there is a command missing in the getpackages.cmd
    to point back to the current folder, if you call kuc with admin rights.
     
  10. Supern00b

    Supern00b MDL Addicted

    Dec 30, 2010
    619
    367
    30
    #112 Supern00b, Sep 16, 2012
    Last edited by a moderator: Apr 20, 2017
    Yes, that is exactly the issue. I've adjusted the commands and added your line, this is my batch to run KUC on Windows 8:

    Code:
    set BATDIR=%~dp0
    Dism /image:%BATDIR%\Offline /get-packages /format:table /English >%BATDIR%\Packages.txt
    %BATDIR%\KUC %BATDIR%\packages.txt /DVD-image-dir:%BATDIR%\offline /up-dir:%BATDIR% /repo-dir:%BATDIR%\Repo
    Working perfectly, doesn't ask for packages.txt anymore.

    Edit:
    KB2545698 is causing trouble, it is constantly removed, and then added again. Subsequent KUC runs do the same, first remove KB2545698 and then add it again.
    It happens only on x86, x64 is OK.
    Also, x64 leaves 4 packages to remove (than can be removed online only I guess) while x86 always leaves 6 packages to remove, 2 of them are KB2545698.
    For now I just leave it like that.

    Cheers.
     
  11. komm

    komm MDL Addicted

    Jun 16, 2011
    888
    3,047
    30
    You have installed 2 versions of 2545698!
    the old and the new version.
    You must first remove the new version
    then remove the old version
    then add the new version.
     
  12. geneticplasma

    geneticplasma MDL Member

    May 13, 2011
    246
    33
    10
    You should fix the link^
     
  13. Supern00b

    Supern00b MDL Addicted

    Dec 30, 2010
    619
    367
    30
    Ok....Problem is how to do that? I understand that it has to be done with dism from the commandline.
    Can you help me with the commands to remove them?
    The packages.txt should contain both versions right?
    I'm working with offline images.

    Cheers.
     
  14. komm

    komm MDL Addicted

    Jun 16, 2011
    888
    3,047
    30
    #118 komm, Sep 17, 2012
    Last edited by a moderator: Apr 20, 2017
    (OP)
    Code:
    @echo off
          set dest=/online
    rem   set tmpdir=D:\offline
    rem   set dest=/image:%tmpdir%
    
    
          if %dest%==/Online DO (
              set AUSetting=0x0
              for /f "tokens=2* delims=0x" %%A IN ('REG query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v AUOptions') DO (
        set AUSetting=0x%%A
        )
    
              if %AUSetting%==0x0 GOTO Problem
              if %AUSetting%==0x1 GOTO NoProblem
              if %AUSetting%==0x2 GOTO NoProblem
              if %AUSetting%==0x3 GOTO Problem
              if %AUSetting%==0x4 GOTO Problem
    
    :Problem
    
        echo.
        echo  !!!!!!!!!! Warning!!!!!!!!!!!!! 
        echo You want to remove OLD packages but have enabled Windows Update.
        echo           This may end in [BAD] packages.
        echo         Set WU to [Never check for updates]
        echo  !!!!!!!!!! Warning!!!!!!!!!!!!! 
        echo.
        pause
          )
    
    :NoProblem
    
    Echo Number of packages to remove : 3
    Echo =====================================================================
    Echo Removing package 1 to 3 of 3 packages   %time%
    dism %dest% /norestart /remove-package /packagename:Package_for_KB2693391~31bf3856ad364e35~x86~~6.1.1.0  /LogPath:"%~dp0DISM.log" /loglevel:2 
    dism %dest% /norestart /remove-package /packagename:Package_for_KB2545698_BF~31bf3856ad364e35~x86~~6.1.1.5  /LogPath:"%~dp0DISM.log" /loglevel:2 
    dism %dest% /norestart /remove-package /packagename:Package_for_KB2545698~31bf3856ad364e35~x86~~6.1.1.5  /LogPath:"%~dp0DISM.log" /loglevel:2 
    dism %dest% /norestart /remove-package /packagename:Package_for_KB2545698_BF~31bf3856ad364e35~x86~~6.1.1.3  /LogPath:"%~dp0DISM.log" /loglevel:2 
    dism %dest% /norestart /remove-package /packagename:Package_for_KB2545698~31bf3856ad364e35~x86~~6.1.1.3  /LogPath:"%~dp0DISM.log" /loglevel:2 
    
        shutdown -r -t 0
    
    note 2693391 must also be removed, since it must be installed after 2545698
    also you must reboot and run kuc again before you add new updates.
    It may be that you have 6.1.1.3 in your repo.
    so delete any versions of 2545698 in you repo.
    and download 2545698 again (from my server!!).
    version 6.1.1.5 and 6.1.1.3 have the same file name
     
  15. Supern00b

    Supern00b MDL Addicted

    Dec 30, 2010
    619
    367
    30
    #119 Supern00b, Sep 17, 2012
    Last edited: Sep 17, 2012
    W00t! A whole script, I love you komm!
    There are only two KB2545698 in the repo, one for x86 and one for x64.
    The .mum and .cat files are version 6.1.1.5 and the file date is June 14 2011.
    I will test the script and to be sure also redownload the KB2545698

    Thanks!

    Edit:
    So I found the issue...Look what happened:
    In my repo folder I have another folder named "old" where I put all the obsolete updates.
    In that "old" folder there was that old update version 6.1.1.3.
    When we run the copier, it takes the file from the "old" subfolder, although the new 6.1.1.5 version is in the main repo!
    That should not be allowed, but I have now moved the old folder to another location.
    Now it is perfect, 0 updates left to add.

    Perhaps you could include a rule to not search subfolders...
     
  16. komm

    komm MDL Addicted

    Jun 16, 2011
    888
    3,047
    30
    Sorry but i just add a subfolder search some weeks ago for users who want to separete their updates.
    I must look if i can add an exception to copy only files form the subfolder if they do not exist in the main folder.
    (I have an OLD subfolder my own in my local repository ;))

    Is it "an OLD subfolder" or "a OLD subfolder" ?:confused: