Jump to content


  • Posts

  • Joined

  • Last visited

Posts posted by DMD

  1. Good morning.
    I am struggling with a strange RunOnceEx situation.
    I have been using this procedure for years from W7 up to W11 22H2 and it works regularly on both HOST PC and virtual machine, but these days an unexplainable thing happens to me.
    When I run this procedure on a newly built pc with Ryzen 9 7950X and still running W11 22H2, the RunOceEx does not run, when I try the same ISO with RunOnceEx on another PC or virtual machine it runs.
    I have been going crazy for a few days and can't figure out why and don't know what solution to look for.
    Any ideas?
    This is the "setupcomplete.cmd" script that I have always uitilized.


    @echo off
    for %%w IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%w:\sources\install.wim SET CDROM=%%w:
    REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
    SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
    REG ADD %KEY% /v Flags /t REG_DWORD /d "20" /f
    REG ADD %KEY% /V Title /D "Post Installation..." /f  >NUl
    REG ADD %KEY%\06 /VE /D "Calculator Legacy" /f  >NUL
    REG ADD %KEY%\06 /V 1 /D "%CDROM%\Software\Calculator_Legacy_2.0.exe" /f  >NUL
    REG ADD %KEY%\07 /VE /D "7-Zip 22.01" /f  >NUL
    REG ADD %KEY%\07 /V 1 /D "%CDROM%\Software\7z2201.msi /quiet /norestart" /f  >NUL


    Sincerely thank you

  2. The option "-b" is not 'documented, but is used by the OS I think every 2 or 3 days. (However it sees fit when the OS ...) to do it

    only when the system but is based on data from the Prefetcher, so if by chance the prefetch 'was disabled or if the PC has not yet had a

    being at rest ( "On Idle") for enough time, this process is not 'yet ever initiated and the defrag, not finding the registry key that

    says when he made the last optimization boot files, which recalls that mistake.

    the key is this

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Prefetcher\\LastDiskLayoutTimeString

    However I solved the problem by running this command and restarting

    rundll32.exe advapi32.dll,ProcessIdleTasks

  3. I can not disable the User Account Protection in "automatic".

    In fact before making any unattended procedure is the first thing to do for the proper integration of software and tweak later.

    In fact in manual mode by clicking on the reg key on the UAP is turned off

    Windows Registry Editor Version 5.00


    But if that key, try to run it in safe mode or self file via the bat does not turn off UAP.

    Any suggestions in that regard?


  • Create New...