RunOnceEx not generating log files (Windows 7)

1

I'm following the RunOnceEx documentation from here: https://support.microsoft.com/en-ie/help/310593/description-of-the-runonceex-registry-key

and I want it to generate a log file, so I use both log-file flags:

0x00000010 Create Error Log File Create C:\Windows\RunOnceEx.err file if errors occur 0x00000020 Create Execution Log File Create a C:\Windows\RunOnceEx.log file with status of commands

But no log files are generated.

Here's my reg file:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\RunOnceEx]
"TITLE"="title test"
"Flags"=dword:00000030

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\RunOnceEx\0001TestRun]
@="NotePad"
"1"="||c:\\\\windows\\\\notepad.exe"

With this test, notepad gets run correctly, but no execution log-file is created.

Then for an error-test, I changed the path on the last line from "notepad.exe" to "notepad2.exe", i.e. a file that doesn't exist. Here I'm expecting an error-log to be generated to indicate an invalid path, but again no error-log gets generated.

Does anyone know why the log files specified in the documentation, RunOnceEx.log and RunOnceEx.err, are not getting generated?

windows-7
boot
automation
logging
asked on Super User Mar 6, 2018 by padraigf

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0