Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Log RunOnceEx

Featured Replies

I was looking for a way to capture in a logfile the activities whenh RunOnceEx executes. I came across the following topic:

http://www.jsiinc.com/subb/tip0500/rh0501.htm

So I used this and it works great, here's an example:

set log=%logdir%\install.log

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V FLAGS /D 0x00000030 /t REG_DWORD /f
REG ADD %KEY% /V TITLE /D "post Install Script" /f

REG ADD %KEY%\020 /VE /D "Adjusting Windows boot-menu" /f
REG ADD %KEY%\020 /V 1 /D "%comspec% /c echo --- Adjusting Windows boot-menu>>%log% 2>&1" /f
REG ADD %KEY%\020 /V 2 /D "bootcfg /timeout 5" /f
REG ADD %KEY%\020 /V 3 /D "bootcfg /delete /ID 2" /f

REG ADD %KEY%\030 /VE /D "Change 'My Computer' " /f
REG ADD %KEY%\030 /V 1 /D "%comspec% /c echo --- Change 'My Computer' >>%log% 2>&1" /f
REG ADD %KEY%\030 /V 2 /D "regedit -s %SystemDrive%\$oem$\MyComp.reg" /f

REG ADD %KEY%\040 /VE /D "Allocate reserve-file of 256 Mb" /f
REG ADD %KEY%\040 /V 1 /D "%comspec% /c echo --- Allocate reserve-file of 256 Mb >>%log% 2>&1" /f
REG ADD %KEY%\040 /V 2 /D "fsutil file createnew c:\reserve.donotdelete 256000000" /f


I have yet to try this, but you can change the flags

0x00000020

Create Execution Log File

Create a C:\Windows\RunOnceEx.log file with status of commands

REG ADD %KEY% /V FLAGS /D 0x00000020 /t REG_DWORD /f

I have yet to try this, but you can change the flags
0x00000020

Create Execution Log File

Create a C:\Windows\RunOnceEx.log file with status of commands

REG ADD %KEY% /V FLAGS /D 0x00000020 /t REG_DWORD /f

I've tried to use an equal command to prevent error dialog boxes. It didn't work...

  • Author

Me too, as you can see I still had the flags=30 in; never got any result; errors or not.

And if you follow the URL you can capture the whole bachtfile like this in a logfile.

Perhaps try this I notice instead I have /t which comes first which work's here

REG ADD %KEY% /v Flags /t REG_DWORD /d "30" /f

Heres syntax

REG ADD KeyName [/v ValueName | /ve] [/t Type] [/s Separator] [/d Data] [/f]

Do you get the C:\Windows\RunOnceEx.log log file? I have the /T first in my reg command, and I don't seem to get it either. I am using 0x00000030 though, not the "30" as you have it. Your's should be interpreted as the decimal 30, not the hex as I have it. From the website I grabbed it from, it uses hex.

sleepnmojo

You right thought i was getting them but I'm not, trying to figure out why

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.