Jump to content

Possible or Not Possible

Recommended Posts


I would like to know if is possible or not to apply a REG file to all registered users during the first open or execute when creating a new user knowing that the registry key is HKCU type. I tried putting HKLM but this does not apply. Someone would have an idea?

Best regards

Link to comment
Share on other sites

Yes there are a couple ways, some use HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\RunOnce(Ex) or you can hijack one of windows Installed Components or create your very own


In my sidebar addon everytime a new user logs in this executes

HKLM,"SOFTWARE\Microsoft\Active Setup\Installed Components\{D58F39FF-953E-4F45-898F-59F243B9A523}","StubPath",0x00020000,"RUNDLL32 advpack.dll,LaunchINFSection %INF_FILE%,Register"

That also creates a reg entry in the HKCU of the same name (this will stop it from running on next login)

HKCU,"Software\Microsoft\Active Setup\Installed Components\{D58F39FF-953E-4F45-898F-59F243B9A523}"

If this is deleted or the version number does not match the one in HKLM, when you log in again it will be executed...thats the reason it executes every time a new user log in, because the HKCU for the new user does not have the Installed Components GUID

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...