Runonce reg key for mutliple users

I've read that the runonce registry key should be run for each time a new user logs in, as stated here:


my problem is that when I put a key in under either HKLM or HKCU it only runs for the username that i was logged into when i created the key.

What piece am I missing?

0 Comments   [ + ] Show comments

Answers (4)

Posted by: mike.burns7 13 years ago
Yellow Belt
I believe i have found my answer.
The user needs to be a administrator to run the Run/RunOnce Registry key?

is there a way around this? give the user permission to run this key without admin rights?
Posted by: WSPPackager 13 years ago
Senior Purple Belt
Hi Mike,

Why dont you use Active Setup? This will make sure to run whenever new user log onto that machine.

You can find nice article on this in AppDeploy. http://itninja.com/blog/view/appdeploy:-articles:-activesetup

WSP packager.
Posted by: mike.burns7 13 years ago
Yellow Belt
thanks i was not aware of the active setup key

for the UID, i read that it is good practice to keep them unique. can i make it anything I want or is there a practice i should follow to create a UID?
Posted by: anonymous_9363 13 years ago
Red Belt
GUIDs are, by defintion, unique. Here's some code I use occasionally for creating them. The 'copying to clipboard' functionality is optional, obviously:Option Explicit

Dim objTypeLib
Dim strGUID
Dim objIE

On Error Resume Next

Set objTypeLib = CreateObject("Scriptlet.TypeLib")
If Err.Number <> 0 Then
End If

strGUID = objTypeLib.Guid

'// Use IE to get GUID into clipboard
Set objIE = CreateObject("InternetExplorer.Application")
If Err.Number <> 0 Then
End If

objIE.document.parentwindow.clipboardData.SetData "text", strGUID

Set objIE = Nothing
Set objTypeLib = Nothing
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ