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


Please log in to comment

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


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?
Answered 04/16/2010 by: mike.burns7
Yellow Belt

Please log in to comment
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.
Answered 04/16/2010 by: WSPPackager
Senior Purple Belt

Please log in to comment
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?
Answered 04/19/2010 by: mike.burns7
Yellow Belt

Please log in to comment
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
Answered 04/20/2010 by: VBScab
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity